Closed Bug 1861195 Opened 8 months ago Closed 7 months ago

Display a progress bar while (re)analysis is in progress

Categories

(Firefox :: Shopping, task, P2)

task

Tracking

()

VERIFIED FIXED
122 Branch
Tracking Status
firefox120 --- wontfix
firefox121 --- verified
firefox122 --- verified

People

(Reporter: jhirsch, Assigned: fchasen)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

We'd like to show a progress bar that fills in based on the API responses.

The analysis progress info is exposed by the analysis_status API, see the info in the docs[1].

It might be worth splitting out a bug to make sure the progress is returned to the UI code while we're polling for results, and a separate bug (this one?) to implement the UI based on the progress info.

[1] https://docs.google.com/document/d/1eppEnQKrSKavM3qmlm36WG7y8o2ggm-oxugnoSr2tpw/edit#heading=h.wooolubprsl4

Severity: -- → S2
Priority: -- → P2

Kicking out to 122 as this arrived late in the 121 cycle

Blocks: 1864494
No longer blocks: 1861074
Assignee: nobody → gijskruitbosch+bugs
Status: NEW → ASSIGNED

Makes the ShoppingProduct extend EventEmitter and emit an analysis-progress event when the is progress reported during polling for analysis statuses.

Passes that event down to shopping message bar with a progress attribute.

Pushed by gijskruitbosch@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/c4b55effdb4b
add string for progress display in shopping sidebar during (re)analysis, r=niklas,fluent-reviewers
Keywords: leave-open
Assignee: gijskruitbosch+bugs → nobody
Status: ASSIGNED → NEW

FWIW, the downloads bits live here: https://searchfox.org/mozilla-central/rev/766a338d53cd29e9851107f9e6a62d333c7d2c51/browser/themes/shared/downloads/indicator.css#80 and use a conic-gradient with a CSS variable to show the progress.

Assignee: nobody → fchasen
Attachment #9363997 - Attachment description: WIP: Bug 1861195 - Pass analysis progress from pollForAnalysisCompleted. → Bug 1861195 - Pass analysis progress from pollForAnalysisCompleted and display progress in sidebar message. r=#shopping-reviewers
Status: NEW → ASSIGNED
Keywords: leave-open
Pushed by fchasen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c491ec0fb8f3
Pass analysis progress from pollForAnalysisCompleted and display progress in sidebar message. r=shopping-reviewers,kpatenio
Status: ASSIGNED → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch
Blocks: 1866324
Target Milestone: 122 Branch → 121 Branch

We normally leave the target milestone field to reflect what branch the fix originally landed in, even if we uplift. :-)

Target Milestone: 121 Branch → 122 Branch

Comment on attachment 9363997 [details]
Bug 1861195 - Pass analysis progress from pollForAnalysisCompleted and display progress in sidebar message. r=#shopping-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined: The user will be unable to tell how far along in the ~60 review checker analysis generation they are.
  • Is this code covered by automated tests?: Yes
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Low risk as this changes the icon for the analysis message of the Review Checker, which is only enabled for a small amount of users currently.
  • String changes made/needed:
  • Is Android affected?: No
Attachment #9363997 - Flags: approval-mozilla-beta?

Comment on attachment 9363997 [details]
Bug 1861195 - Pass analysis progress from pollForAnalysisCompleted and display progress in sidebar message. r=#shopping-reviewers

Approved for 121.0b5.

Attachment #9363997 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

The analysis progress % is properly displayed in Beta 121.0b5 as well as our latest Nightly build. Verified as fixed.

Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: