-
Notifications
You must be signed in to change notification settings - Fork 543
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
AO3-5830 Tag search: Allow searching by fandom, searching for non-canonical tags, and sorting results #4144
Conversation
A note about autocomplete in the Fandoms field: I believe
I'm not sure about how to go about fixing this, so I've left only the |
* Use correct field in tag query * Update step definitions and tests * Test for non-canonical and non-existent fandoms
Also, I hope it's okay to mark the comments that I think I've addressed in the changes as resolved, please let me know if I shouldn't! |
* Use fandoms instead of fandom_names * Make fandom filter ignore non-existent fandoms * Add new test scenarios for non-existent fandoms
I don't think this was in the specification, but should I let the sorting direction be configurable? Right now, it's defaulting to descending order. |
I'm not sure why sorting by uses in ascending order isn't working — if someone could point me in the right direction, that would be great. |
The |
Let's just do sorting by name and date created. |
Aw, that's unfortunate. Will make the changes. |
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, thanks! Just one last minor thing.
app/models/search/tag_search_form.rb
Outdated
def sort_options | ||
[ | ||
%w[Name name], | ||
%w["Date Created", "created_at"] |
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 should be ["Date Created", "created_at"]
, without the %w
.
Pull Request Checklist
as the first thing in your pull request title (e.g.
AO3-1234 Fix thing
)until they are reviewed and merged before creating new pull requests.
Issue
https://otwarchive.atlassian.net/browse/AO3-5830
Purpose
Testing Instructions
References
Credit
weeklies (she/her)