-
Notifications
You must be signed in to change notification settings - Fork 668
AO3-5367 Bookmarks of unrevealed appear in search results #5550
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
base: master
Are you sure you want to change the base?
Conversation
|
To note, this will require reindexing |
|
Could you explain why it doesn't work to use a filter in the bookmarkable query similar to hidden_filter? otwarchive/app/models/search/bookmarkable_query.rb Lines 282 to 287 in b23fe62
|
This will work for making sure we cannot search using the information on the work that is not visible. However, this would also make it so that it is impossible to search for the visible information on the bookmark. The second step of the added test would fail as this would just exclude every bookmark that is of an unrevealed bookmarkable. |
Bilka2
left a comment
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.
Thank you for the explanation! I reconfirmed that we indeed want to keep the bookmarks themselves searchable, so this current approach is good
For the reindexing, this doesn't change the mapping so we we don't need to rebuild the whole index. So, ideally we would update only the bookmarkables that are unrevealed works, without needing downtime. Could you add a rake task that does that? reindex_hidden_unrevealed_tags is an example of a similar task
Issue
https://otwarchive.atlassian.net/browse/AO3-5367
Purpose
This makes it so it is impossible to search for hidden (via unrevealed) information with bookmarks by making the json returned for the bookmarked item be empty if the item is unrevealed.
Credit
Danaël / Rever ( they / he )
Danaël Villeneuve on jira