Document tags are not removed automatically

Describe your question/issue in detail

Tags in our repository are not being auto-removed. This issue seems similar to what @thejuniperstudio described here. I have recorded a Jam here for you to see, the repository ID is staffordshire-street. Everything else is fantastic!

Impacted feature

Tags API in the content editor.

What steps have you taken to resolve this issue already?

Checked all tags in 'Work', 'Planned' and 'Archive' spaces to ensure there are no remaining documents with unnecessary tags.

Errors

There are no error messages in the console when browsing tabs.

Your Role

Developer

Steps to reproduce

Log in to the repository and browse (create, read, update and delete) tags.

Hi @staffordshirest,

Thanks for the report and the details! We're happy to hear you're enjoying Prismic :slight_smile: Sorry about this bug, it does indeed look very similar to the one reported by @thejuniperstudio. I'll share the same response: this is where we're tracking this bug report. Your post has been linked to it, so we'll know to notify you when it is fixed. Apologies for the inconvenience in the meantime, and don't hesitate to reach out if you need anything else!

1 Like

Hi @Ezekiel, thanks for getting back to me so quickly :innocent: – I can see from the bug report in Jira that it's been open a while and is low priority. Do you think it's worth trying to create a workaround where I'm consuming the tags API in our frontend (obviously we don't want to display unused tags!), or is this something that is likely to be resolved soon?

The team has focused on more directly impactful bugs in the recent weeks, is there a specific reason why this is especially a blocker for you? Any details help make the report weightier, and I can bring attention to it if you can share why it's been bothersome to your workflow :slight_smile: Maybe we don't have an accurate picture of how we should prioritize it.

That's OK – I'm just using the Tags API (and the client.getTags() query function) to fetch all the tags in the repository to display for user filtering on our Next.js frontend (here, under 'filter'). So if there are lots of tags that shouldn't be there, I will need to figure out a way to extract tags from the pages or check these tags against document results to be sure they are currently in use. Unless there is another way of querying tags I don't know about?

Ah, I see! This makes sense. You're right that the workaround would be to check these tags against document results, but it would save you the trouble if Tags worked as they ought to on the Page Builder :slight_smile: I'll add this to the bug report and make sure the team knows. Thanks for the details!

1 Like