Skip to content

Conversation

@ReverM
Copy link
Contributor

@ReverM ReverM commented Dec 18, 2025

Issue

https://otwarchive.atlassian.net/browse/AO3-6067

Purpose

This makes uncategorized fandoms be listed on collection fandoms page. As a bonus, this also makes the unwrangled tags collection page show only the work in the collection. This modifies the method used to fetch the fandom (being a combination of how it used to work with the fandom_ids field, and how view works, by going through the fandom tags on the work).

Credit

Danaël / Rever ( they / he )
Danaël Villeneuve on jira

@ReverM
Copy link
Contributor Author

ReverM commented Dec 19, 2025

I'd like to add a test to make sure that non-canonical fandoms don't get double counted. How exactly do I set up a non-canonical fandom under a canonical fandom in cucumber?

After this is done, I shall remove put this as ready for review

@ReverM ReverM marked this pull request as ready for review December 19, 2025 18:17
@omerfaruk-pseud omerfaruk-pseud self-requested a review December 26, 2025 11:26
simplified check to know if a fandom is not categorized

Co-authored-by: ömer faruk <[email protected]>
@ReverM ReverM requested a review from omerfaruk-pseud January 8, 2026 21:11
@ReverM
Copy link
Contributor Author

ReverM commented Jan 8, 2026

Hmm, I seem to not be able to locally replicate the issue with the latest automated testing

@omerfaruk-pseud
Copy link
Member

That failed after a rerun too, and we suspect it might be because of caching. Can you disable caching for that scenario (like it is done for the first scenario on line 4)

And I should see "Papyrus"
And I should see "Secret Sans"

@disable_caching
Copy link
Contributor

@Bilka2 Bilka2 Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try the the collection counts have expired step before interacting with the collections sidebar/the fandom counts instead of disabling caching like this

Copy link
Contributor Author

@ReverM ReverM Jan 14, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test still fails. It doesn't on my end which makes troubleshooting difficult. The fact it used to work and broke on an unrelated change confuses me.

@omerfaruk-pseud
Copy link
Member

We've discussed this and decided that we can just go with a unit test instead of an integration test. Can you add one for fandoms_controller.rb on fandoms_controller_spec.rb?

@ReverM
Copy link
Contributor Author

ReverM commented Jan 15, 2026

We've discussed this and decided that we can just go with a unit test instead of an integration test. Can you add one for fandoms_controller.rb on fandoms_controller_spec.rb?

Alrighty. The fandom counting part is not part of the fandom_controller. Would it be more appropriate to add a test to the collection_controller?

@omerfaruk-pseud
Copy link
Member

Since this line on fandoms_controller counts the fandoms (and the collections_controller doesn't) I thought it would be fine but I don't have a strong preference really.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants