New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search: refactor views #8157
Search: refactor views #8157
Conversation
This was extracted from #8149 to make it easy to review. - Separate this "shared" view into two classes, too many conditionals otherwise. - Remove unused `index` query param.
results = [] | ||
facets = {} | ||
|
||
if user_input.query: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this whole block was moved to the base class.
- q: search term | ||
- version: version to filter by | ||
- role_name: sphinx role to filter by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the search
tab we only search for files under that project, so no need to choose between serializes or to pass any other additional inputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Co-authored-by: Eric Holscher <25510+ericholscher@users.noreply.github.com>
This was extracted from #8149
to make it easy to review.
otherwise.
index
query param.No changes to the logic were made, there is another PR in .com to match these changes