Closed
Bug 903064
Opened 11 years ago
Closed 11 years ago
Premium apps not returned by reviewer search tool
Categories
(Marketplace Graveyard :: API, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
2013-08-27
People
(Reporter: adora, Assigned: mat)
Details
Examples: Jaxogram FoxyMPD Text him? Echo Mage MTG Exception: Webfighter, which is free with in-app Search options selected: any status, any app type, any device type, and tried many combinations of premium type flags.
Assignee | ||
Comment 1•11 years ago
|
||
It appears to be restricted to 'premium' checkbox, at least on -dev (free-inapp, free, other seem to be working, I suspect premium-inapp works and we just don't have any in -dev) I can reproduce on -dev with curl: This works: curl 'https://marketplace-dev.allizom.org/api/v1/apps/search/?region=pl&premium_types=premium' This doesn't, returning a 200 OK with 0 objects: curl https://marketplace-dev.allizom.org/api/v1/reviewers/search/?premium_types=premium' -H 'Cookie: sessionid="<insert_sessionid_here>"' And I'm stuck here for now. I thought it'd have something to do with the region, but the reviewers search api code should bypass all region filtering, and adding region=pl in the URL doesn't help. And, to make things worse, it works for me locally, although my premium apps locally have been created & validated manually since I don't have a payments account set up.
Comment 2•11 years ago
|
||
(In reply to Mathieu Pillard [:mat] from comment #1) > It appears to be restricted to 'premium' checkbox, at least on -dev > (free-inapp, free, other seem to be working, I suspect premium-inapp works > and we just don't have any in -dev) Jaxogram is premium-inapp and that doesn't show up either. So its both the premium types.
Comment 3•11 years ago
|
||
Looking at the debug output for the ES query it's doing both of the following.: * {"not": {"filter": {"in": {"premium_type": [1, 2]}}}} * {"in": {"premium_type": [1]}} Which no app will have both true. Somewhere it's adding the 2nd one.
Updated•11 years ago
|
Component: Reviewer Tools → API
Comment 4•11 years ago
|
||
Correction to last comment... The 2nd query is the one we want, it's the first one that's breaking things. That is added because of this: https://github.com/mozilla/zamboni/blob/master/mkt/webapps/models.py#L698 Hopefully that's enough for someone to fix?
Assignee | ||
Comment 5•11 years ago
|
||
Yeah, good catch, thanks, that's more than enough for me to easily fix this.
Assignee: nobody → mpillard
Comment 6•11 years ago
|
||
It might be good to take out the uses_flash filtering for reviewers too, while you're tinkering with that function.
Updated•11 years ago
|
Priority: -- → P2
Assignee | ||
Comment 7•11 years ago
|
||
Fixed in https://github.com/mozilla/zamboni/commit/1572ab7fa0e136c40bbcd973c18a60be38932fbd STR: - In reviewer tools, in the advanced search, check the premium apps checkbox and hit the search button. - You should get some results :)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2013-08-27
Comment 8•11 years ago
|
||
verified fixed at https://marketplace-dev.allizom.org/api/v1/reviewers/search/?q=&status=pending&app_type=&device=&premium_types=free-inapp&premium_types=premium&is_privileged=&has_editor_comment=&has_info_request=&is_escalated=&limit=200&_=1377208534308
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•