Closed Bug 1867057 Opened 10 months ago Closed 10 months ago

The Adjusted ratings card is displayed for unknown products

Categories

(Firefox :: Shopping, defect, P1)

Desktop
Unspecified
defect

Tracking

()

VERIFIED FIXED
122 Branch
Tracking Status
firefox-esr115 --- disabled
firefox120 --- disabled
firefox121 --- disabled
firefox122 --- verified

People

(Reporter: rdoghi, Assigned: fchasen)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fidefe-shopping])

Attachments

(3 files)

Attached image 2023-11-28_16h56_04.png

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

  1. Reach https://www.amazon.de/Amazon-brand-Movian-computer-drawers/product-reviews/B07GFRCZWY/ref=cm_cr_arp_d_paging_btm_next_2?ie=UTF8&reviewerType=all_reviews&pageNumber=2

Expected result

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.

Prevent null from being coerced into 0 for the rating.

Assignee: nobody → fchasen
Status: NEW → ASSIGNED

Marking as a P1, since it's assigned

Priority: -- → P1

...and bumping up the severity, since this is a very noticeable bug

Severity: S3 → S2
Pushed by fchasen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5b4191b2f470 Check ifDefined when setting rating for AdjustedRating component. r=shopping-reviewers,Gijs
Pushed by fchasen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d2b377eea84f Display unanalyzed product card if analysis grade is missing. r=shopping-reviewers,Gijs

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 ==)
Flags: needinfo?(fchasen)

Updated to check that grade is a "string" instead of "number".

Flags: needinfo?(fchasen)
Pushed by fchasen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/184994c096de Display unanalyzed product card if analysis grade is missing. r=shopping-reviewers,Gijs
Status: ASSIGNED → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch

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.

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

Attachment

General

Created:
Updated:
Size: