Wrangling: Removing a subtag from its metatag does not remove the subtag's works from the metatag's metatag

Description

Originally reported on Google Code with ID 4085
What archive revision are you testing on? (See the version label in
the footer, for example v0.8.13.8.)
otwarchive test-0.9.20.13

If appropriate, enter the URL of a page where the problem can be seen:
http://test.archiveofourown.org/tags/Highest%20Tag/works

What steps will reproduce the problem?
1. Log in as a tag wrangler
2. Post three separate works, each with a different fandom, e.g. Lowest Tag, Middle
Tag, Highest Tag
3. Make your fandom tags canonical and set them up so (1) Middle Tag is a subtag of
Highest Tag and (2) Lowest Tag is a subtag of Middle Tag
4. Remove Lowest Tag as a subtag of Middle Tag
5. Remove Middle Tag as a subtag of Highest Tag

What is the expected output? What do you see instead?
The works index for Highest Tag should only show the work tagged with Highest Tag.
Instead, it shows the work tagged with Highest Tag and the work tagged with Lowest
Tag. Sadly, it is not caching.

You can also see the problem if you check the works index for Highest Tag in between
steps 4 & 5.

Assignee

ticking instant

Reporter

Sarken

Roadmap

Tag Wrangling

Priority

Medium

Affects versions

None

Fix versions

Components

BackEnd

Difficulty

Medium

Required Access Level

Tag Wrangler

Milestone

Internal 0.9

Google Code Issue ID

4085
Configure