Closed
Bug 1165024
Opened 9 years ago
Closed 9 years ago
make the search endpoint take a "content" (or "content_type") param to filter apps v. sites
Categories
(Marketplace Graveyard :: General, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
2015-05-19
People
(Reporter: kngo, Assigned: kngo)
References
Details
(Whiteboard: [qa-])
It should default to all content (or content=all). Shows only apps if (content=apps). Shows only websites if (content=websites).
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → kngo
Comment 1•9 years ago
|
||
Should be pretty straightforward, just modify the `doc_type` list passed to Search() in the MultiSearchView.get_queryset() method here https://github.com/mozilla/zamboni/blob/master/mkt/search/views.py depending on GET params. Ideally we'd call the param doc_type to match the property that the serializer adds (https://github.com/mozilla/zamboni/blob/master/mkt/search/serializers.py#L141) and the values would be webapp and website.
Assignee | ||
Comment 2•9 years ago
|
||
https://github.com/mozilla/zamboni/pull/3084
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Whiteboard: [qa-]
Target Milestone: --- → 2015-05-19
You need to log in
before you can comment on or make changes to this bug.
Description
•