Details
Details
Assignee
Unassigned
UnassignedReporter
Sarken
SarkenRoadmap
Collections
Priority
Affects versions
Components
BackEnd
Difficulty
Medium
Milestone
Internal 0.9
Sentry
Sentry
Created November 6, 2020 at 4:02 AM
Updated November 18, 2020 at 3:21 AM
Steps to reproduce
Log in
Browse > Collections > New Collection
Fill in required information (Collection name, Display title)
Press "Submit" to create the collection
Follow the "Post to Collection" link
Fill in required information, making sure to enter a fandom tag that is either brand new or that appears on the Uncategorized Fandoms page
Press "Post"
Follow the link to your collection (located in the work's meta)
What happens
In the collection's sidebar, the count beside Fandoms is 0
When you follow the "Fandoms (0)" link, you see 0 fandoms
In the select menu for media types, you see no "Uncategorized Fandoms" option
If you go to Collections > Browse, the blurb for the collection says Fandoms: 0
What should happen
The count in the sidebar should include any canonical or noncanonical uncategorized fandoms on works in the collection
The collection's fandoms page should include those fandoms
The select menu should have an "Uncategorized Fandoms" option (and using it should take you to a page listing those fandoms)
The count in the blurb for the collection should include any canonical or noncanonical uncategorized fandoms on works in the collection
Notes
Because noncanonical fandoms don't have /works pages, the names of the fandoms will link to the tag page, e.g. https://test.archiveofourown.org/collections/5613_pm/tags/Killing%20Eve. We'll need to make sure the page only includes works in the collection (as opposed to all works with the tag) and also pay attention to caching (we don't want /tags/NAME to show only works in a specific question or /collections/NAME/tags/NAME to show all works due to caching).
Additionally, this will affect – because it applies to counts and you'll need to be able to filter for fandoms containing works in uncategorized fandoms – and should be done first to avoid the need to reindex. Fields this will affect are general_fandom_ids, public_fandom_ids, general_fandoms_count, and public_fandoms_count.