Currently going to http://test.archiveofourown.org/external_works as an admin gives a 500 error.
As does http://archiveofourown.org/external_works?show=duplicates as a user.
Once this is deployed those paths should return pages which show only the external works which are duplicates.
We want to increase test coverage of the external works controller from 53.66%.
60.98 but I am planning on pulling the rest out so...
reviewers: redsummernight, Sarken, ticking instant
Also credit redsummernight as coder.
Qem: Looks good!
I find this issue description slightly confusing, but anyway:
I can view https://test.archiveofourown.org/external_works as both an admin and a user (1570 pages).
As a user, https://test.archiveofourown.org/external_works?show=duplicates sends me to my dashboard “Sorry, you don't have permission to access the page you were trying to reach.”
As an admin on the External Works page, I see a “Show duplicates (2710)” button in the upper right corner.
Clicking it takes me to https://test.archiveofourown.org/external_works?show=duplicates
The page looks nominally the same (title “External Works”, with the same button in the corner) but has only 136 pages instead of 1570 pages.
Note: Because it looks basically identical and I have to use the back button to get back to the first page, I feel like this duplicates page could be improved, but that’s a separate issue
No 500 errors when viewing either page, so I think this is good.