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)
Tracking
(Not tracked)
VERIFIED
FIXED
2014-02-04
People
(Reporter: krupa.mozbugs, Assigned: kngo)
References
()
Details
Attachments
(1 file)
425.94 KB,
image/png
|
Details |
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
Comment 1•12 years ago
|
||
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
Assignee | ||
Comment 2•12 years ago
|
||
I think they are being evaluated:
https://github.com/mozilla/zamboni/blob/master/mkt/webapps/utils.py#L250
calls
https://github.com/mozilla/zamboni/blob/master/mkt/webapps/utils.py#L250
which calls unicode.
Assignee | ||
Comment 3•12 years ago
|
||
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.
Comment 4•12 years ago
|
||
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.
Assignee | ||
Comment 5•12 years ago
|
||
Haven't been able to reproduce from -dev yet, maybe there's a fix amidst the patches from this week.
Assignee | ||
Comment 6•12 years ago
|
||
Not reproducing on stage. Closing to verify.
Status: NEW → RESOLVED
Closed: 12 years ago
Priority: -- → P2
Resolution: --- → FIXED
Comment 7•12 years ago
|
||
Verified as fixed : http://screencast.com/t/L6QIZ4vD
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 8•12 years ago
|
||
This still happens on prod. See https://www.dropbox.com/s/ogb1kmdekwtnfpr/Screenshot%202014-01-28%2012.31.33.png
https://marketplace.firefox.com/search?q=phone
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 9•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 10•12 years ago
|
||
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.
Comment 11•12 years ago
|
||
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 → ---
Comment 12•12 years ago
|
||
Also, the region is set to United States
Assignee | ||
Comment 13•12 years ago
|
||
Not yet pushed the patch, will unset the last milestone.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Target Milestone: 2014-01-28 → ---
Assignee | ||
Updated•12 years ago
|
Target Milestone: --- → 2014-02-04
Reporter | ||
Comment 14•12 years ago
|
||
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.
Description
•