The Adjusted ratings card is displayed for unknown products
Categories
(Firefox :: Shopping, defect, P1)
Tracking
()
People
(Reporter: rdoghi, Assigned: fchasen)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fidefe-shopping])
Attachments
(3 files)
Found in
- Nightly 122.0a1 (2023-11-27)
Affected versions
- Nightly 122.0a1 (2023-11-27)
Affected platforms
- ALL
Preconditions:
browser.shopping.experience2023.enabled - true
browser.shopping.experience2023.optedIn = 0
Steps to reproduce
Expected result
- We should not get a product_id for unknown products : https://searchfox.org/mozilla-central/rev/9bc264fbc5d6e618d8f3b9677a8f5e8550b94dbc/browser/components/shopping/content/shopping-container.mjs#217,224-225
Actual result
- The Product page showed an unanalyzed card, after which the Not enough reviews message was displayed and finally after refresh the Adjusted card is displayed with 0 stars.
Regression range
Not Applicable
This is a new Feature that brings Shopping support to amazon.fr and amazon.de.
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Prevent null
from being coerced into 0 for the rating.
Updated•1 year ago
|
Assignee | ||
Comment 2•1 year ago
|
||
Marking as a P1, since it's assigned
...and bumping up the severity, since this is a very noticeable bug
Comment 7•1 year ago
|
||
Backed out for causing bc failures in browser_inprogress_analysis.js
- Backout link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-FAIL | browser/components/shopping/tests/browser/browser_inprogress_analysis.js | Got stale message-bar - "undefined" == "stale" - got (void 0), expected "stale" (operator ==)
Assignee | ||
Comment 8•1 year ago
|
||
Updated to check that grade is a "string" instead of "number".
Comment 10•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/5b4191b2f470
https://hg.mozilla.org/mozilla-central/rev/184994c096de
Reporter | ||
Comment 11•1 year ago
|
||
Tested with our latest Nightly build 122.0a1 (2023-12-05) using this URL : https://www.amazon.com/Energizer-Headlamp-Resistant-Headlamps-Batteries/dp/B0CDJFFD8S/ref=sr_1_48?crid=296KJTHQVWMW6&keywords=headlamp&qid=1701795545&sprefix=headlamp%2Caps%2C91&sr=8-48
It now correctly shows the un-analyzed card, unless someone hits the Check Review Quality button the url should be good to test this issue.
Description
•