make the search endpoint take a "content" (or "content_type") param to filter apps v. sites

RESOLVED FIXED in 2015-05-19

Status

Marketplace
General
P1
normal
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: ngoke, Assigned: ngoke)

Tracking

2015-05-19
Points:
---

Details

(Whiteboard: [qa-])

(Assignee)

Description

3 years ago
It should default to all content (or content=all).

Shows only apps if (content=apps).

Shows only websites if (content=websites).
(Assignee)

Updated

3 years ago
Blocks: 1158165
No longer depends on: 1158165
(Assignee)

Updated

3 years ago
Assignee: nobody → kngo
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

3 years ago
https://github.com/mozilla/zamboni/pull/3084
Status: NEW → RESOLVED
Last Resolved: 3 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.