Closed
Bug 1851609
Opened 1 year ago
Closed 1 year ago
Add API endpoint to trigger analysis
Categories
(Firefox :: Shopping, task, P1)
Firefox
Shopping
Tracking
()
RESOLVED
FIXED
119 Branch
Tracking | Status | |
---|---|---|
firefox119 | --- | fixed |
People
(Reporter: jhirsch, Assigned: fchasen)
References
Details
(Whiteboard: [fidefe-shopping])
Attachments
(1 file)
We've just heard that the fakespot API will support triggering analysis quite soon (within the next week or so).
Let's get the API design details and build the client-side integration in parallel, so this is ready for QA as soon as possible.
Reporter | ||
Updated•1 year ago
|
Severity: -- → S2
Priority: -- → P1
Whiteboard: [fidefe-shopping]
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee: nobody → fchasen
Reporter | ||
Comment 1•1 year ago
|
||
Marking 119 ship-blockers as P1s for easier tracking
Assignee | ||
Comment 2•1 year ago
|
||
- Adds the API endpoint and schema for analyze and analysis status.
- Adds
requestAnalyze
andrequestAnalysisStatus
methods for products. - Updated
pollForAnalysisCompleted
to poll the analysis status api instead of analysis. - After testing with the production api, polling now has an initial wait of 60s and will poll every 1s after that for 2 more minutes.
- Removed exponential backoff as the new api gives updated progress with the status, so better to get it consistently.
- Removed links to external analysis triggers.
- Update ShoppingSidebarChild
updateContent
to check if there is an analysis in progress and if so wait for it to finish before requesting the analysis.
NOTE: Now that pollForAnalysisCompleted
has a status api to poll, it returns a status result. The analysis data will now need to be requested with requestAnalysis
after the polling has finished.
Updated•1 year ago
|
Attachment #9352310 -
Attachment description: WIP: Bug 1851609 - Add Analyze and Analysis Status Product APIs → Bug 1851609 - Add Analyze and Analysis Status Product APIs. r=#shopping-reviewers
Pushed by fchasen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c74fb301e2f4
Add Analyze and Analysis Status Product APIs. r=shopping-reviewers,jhirsch
Comment 4•1 year ago
|
||
Backed out for bc failures on browser_shopping_integration.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/c0ad2e66535c99622bade446611d036aa60bfcc8
Log link: https://treeherder.mozilla.org/logviewer?job_id=428935146&repo=autoland&lineNumber=15164
Flags: needinfo?(fchasen)
Pushed by fchasen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/797c9afc3d0a
Add Analyze and Analysis Status Product APIs. r=shopping-reviewers,jhirsch
Comment 6•1 year ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 1 year ago
status-firefox119:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
Assignee | ||
Updated•1 year ago
|
Flags: needinfo?(fchasen)
You need to log in
before you can comment on or make changes to this bug.
Description
•