Skip to content

hide deprecated tags#571

Open
dblatcher wants to merge 2 commits into
mainfrom
dblatcher/hide-deprecated-tags
Open

hide deprecated tags#571
dblatcher wants to merge 2 commits into
mainfrom
dblatcher/hide-deprecated-tags

Conversation

@dblatcher

Copy link
Copy Markdown
Contributor

What does this change?

The searchTags method of the tagManager service will now exclude deprecated tags by default. This should be a no-op in production there are no deprecated Tags in the PROD tag DB (the UI does not expose the new property yet).

The only usage of the tagManager to search for tags is to set the print location book section tag.

How has this change been tested?

Ran tagmanager locally on guardian/tagmanager#637 and marked the "Obs: 100 Great British Woods and Forests (nbs)" tag (https://tagmanager.local.dev-gutools.co.uk/hyper/tags/43543) as deprecated.

Opened the management tab of content drawer for an article and type "obs" into the Print location / book section search input.

On this branch, "Obs: 100 Great British Woods and Forests (nbs)" tag was no longer included in the results, but is included on main.

How can we measure success?

We will be able to deprecate historical book sections (like the observer related ones) so users only see the relevant options.

Have we considered potential risks?

This PR doesn't add a UI option for allowing the user to see deprecated tag, but that is unllikely to be required as workflow is not typcally used for historical content. If necessary, Composer could be used to restore deprecated section tags.

Images

Screenshot 2026-04-15 at 16 40 52

@dblatcher dblatcher added the feature Departmental tracking: work on a new feature label Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Departmental tracking: work on a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant