Allow tag wrangling admins to download CSV of wranglers' last wrangled tags

Description

  1. Log in as an admin with the tag_wrangling or superadmin role

  2. Go to a user’s wrangling page (https://test.ao3.org/tag_wranglers/USERNAME/)

There should be a button-style “Tags Wrangled (CSV)” link under the “username’s Wrangling Page” heading that allows you to download a CSV of tags that were last wrangled by the user. (You can check the Profile, Subscribe, etc navigation on user show pages to see how the markup should be handled on pages with icons and underlined headings.)

The CSV should be tab-separated and include Tag Name, Date Updated, Tag Type, Merger, Fandoms, Canonical, Unwrangleable. (“Merger” is the tag it is synned to, if any, and “Canonical” and “Unwrangleable” have true or false values.)

You can adapt what we usually do from the console:

The CSV should not be treated liked downloads and cached on the front ends; it should be generated on demand and only available to authorized admins, like challenge CSVs are only available to the challenge moderators.

The “Tags Wrangled (CSV)” link should not be present if you are not logged in as an authorized admin.

Attachments

1

Activity

Show:

redsummernight 
May 17, 2023 at 3:30 AM

Let’s set the limit to 1k in the repo, so we don’t need to update it on staging/production on deploy.

Sarken 
May 16, 2023 at 10:36 PM

We tried 2k and that got the same “cannot parse response” error, so 1k it will be.

Sarken 
May 16, 2023 at 8:03 PM

4k didn’t work, but 1k did. We need to try 2k and 3k at some point, maybe on production.

lydia-theda 
May 14, 2023 at 3:03 AM

confirming that I can’t see any CSV button or access the CSV url as a non-TW admin

Sarken 
May 14, 2023 at 2:59 AM

I can still download my CSV, but still can’t download the CSV of the person with the 10k tags. This time, I did get an error, albeit from my browser:

We’ll try lowering the limit to 4k and seeing if that helps.

DeployedToBeta

Details

Assignee

Reporter

Roadmap

Admin
Tag Wrangling

Priority

Affects versions

Fix versions

Components

BackEnd

Difficulty

Required Access Level

Admin

Milestone

Sentry

Created January 28, 2023 at 12:00 AM
Updated May 21, 2023 at 6:09 PM
Resolved May 21, 2023 at 6:09 PM