Closed
Bug 885131
Opened 11 years ago
Closed 11 years ago
What to show when region isn't available
Categories
(Marketplace Graveyard :: General, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
2013-06-27
People
(Reporter: andy+bugzilla, Assigned: andy+bugzilla)
References
Details
We have two main API's we use: get_price(region=...) get_price_locale(region=...) The first returns the price as a decimal. The second as a localised string with currency. This is all fine. Until you submit an app that is for sale in Canada only. Then you view the app in the developer tools, fireplace or reviewer tools. What do we do? Currently we error, because the app is not available in that region. This is fine for consumer pages because we are addressing that in bug 878215. But, for example, the reviewer tools call get_price in at least three different places. Should we just fall back on None and make sure everywhere knows that None means "there should be a price but there is None". Would we then need a seperate API for reviewer tools and developer pages that they can call?
Assignee | ||
Comment 1•11 years ago
|
||
How about: app.get_price_tier() Will return the price tier (object or price?). And stop the KeyError raising and just return None. Then in all developer and reviewer tools, just use app.get_price_tier().
Comment 2•11 years ago
|
||
I think showing price tier could make sense. Especially if we had some grid showing the price in various regions and where it is not available that we could readily link to.
Assignee | ||
Comment 3•11 years ago
|
||
wip, needs tests writing and fixing https://github.com/andymckay/zamboni/commit/1fae94
Updated•11 years ago
|
Target Milestone: 2013-06-20 → 2013-06-27
Assignee | ||
Comment 4•11 years ago
|
||
https://github.com/mozilla/zamboni/commit/d74a8c
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•11 years ago
|
||
STR: 1. upload and setup a paid app, pick a tier 2. open the developer tools or reviewer tools for that app in a region that doesn't exist for that app, eg: ?region=br Should not throw errors.
Comment 7•11 years ago
|
||
blocked on verification by https://bugzilla.mozilla.org/show_bug.cgi?id=886713
You need to log in
before you can comment on or make changes to this bug.
Description
•