News posts: After filtering by a tag, the Tag select menu lists all tags used on every post

Description

Example URL: https://test.archiveofourown.org/admin_posts?utf8=✓&tag=105&language_id=en&commit=Go

Steps to reproduce:

  1. About > News

  2. In the "Tag" menu at the top of the posts, choose a tag to filter by

  3. Press "Go"

  4. Click on the "Tag" menu again

What happens:
It lists tags waaaay too many times. It appears that what it's doing is going through all of the admin posts, gathering up the tags, and listing them. So if Post 1 is tagged "2009, release notes," Post 2 is tagged "2009, ADT Minutes," and Post 3 is tagged "2009, ADT Minutes," the tag list is

  • 2009

  • release notes

  • 2009

  • ADT Minutes

  • 2009

  • ADT Minutes

What should happen
Each tag should be listed once. The tags should be in alphabetical order.

Activity

Show:
Sarken
April 27, 2018, 4:01 PM
Edited

Same cause as AO3-5259, slightly different description of the issue.

Duplicate

Assignee

Unassigned

Reporter

Sarken

Roadmap

Admin

Priority

Medium

Affects versions

Fix versions

None

Components

BackEnd

Difficulty

Medium

Milestone

Internal 0.9