Closed Bug 963217 Opened 12 years ago Closed 12 years ago

Content rating shown in the wrong locale when the region is set to United States

Categories

(Marketplace Graveyard :: Consumer Pages, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED
2014-02-04

People

(Reporter: krupa.mozbugs, Assigned: kngo)

References

()

Details

Attachments

(1 file)

Attached image content rating.png
steps to reproduce: 1. Make sure your region is set to US 2. Search for Phone 3. Notice the content rating for the app 'ThePhoneDB' expected behavior: Content rating says 'Teen' observed behavior: Content rating says 'Adoloscente' Note that reloading the page usually fixes the problem
The API looks wrong: http://f.cl.ly/items/130M1m2v1k0l0s1d1I3f/Screen%20Shot%202014-01-23%20at%201.32.54%20PM.png AFAICT, it's because the `description` and `rating` aren't being evaluated (`unicode(...)`) at the time of the request: https://github.com/mozilla/zamboni/blob/master/mkt/webapps/utils.py#L256-L258
Blocks: 929812
Debugging notes: - Refreshing an app over and over (e.g. https://marketplace.firefox.com/app/the-phone-database or https://marketplace.firefox.com/app/draw-nothing) from en-US, randomly yields either English or Spanish from the content ratings portion of the API response. Is it because of the difference between being served from ES and from AppSerializer? I make sure responses from both go through a common dehydrating process that evaluates the Lazy objects.
FYI I just landed bug 945820 so that might have some impact on this issue. Just something to keep in mind when you debug it.
Haven't been able to reproduce from -dev yet, maybe there's a fix amidst the patches from this week.
Not reproducing on stage. Closing to verify.
Status: NEW → RESOLVED
Closed: 12 years ago
Priority: -- → P2
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Have to devices side by side. One in Spanish, one in English. STR: 1. Visit app listing page on the Spanish device. 2. Immediately view the page on the English second device. 3. Refresh the page on the Spanish device. Expected: All content ratings should be display respective to the device's language. Actual: Displayed in language of last visitor.
Kevin , this is what I see when using MP on my desktop with language set to English : http://screencast.com/t/bTNFawUSy
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Also, the region is set to United States
Not yet pushed the patch, will unset the last milestone.
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
Target Milestone: 2014-01-28 → ---
Target Milestone: --- → 2014-02-04
Using STR in comment 10, content rating shows up in the right locale.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: