Forem Creators and Builders 🌱

Discussion on: Is it possible to delete/hide tags?

 
ben profile image
Ben Halpern

Merged the 404 for 0 posts/unsupported tags. Will be live in Forem Cloud shortly.

Return 404 if empty and unsupported tag #14864

What type of PR is this? (check all applicable)

  • [ ] Refactor
  • [x] Feature
  • [ ] Bug Fix
  • [ ] Optimization
  • [ ] Documentation Update

Description

Since tags get created whenever they are included in a post, the tag exists even with no published posts.

It has been determined that the expected behavior should be a 404 response. If the tag is supported than the expectation is that the admin wants it to show up, even with no posts. (Likely a no posts yet scenario.)

Related Tickets & Documents

Closes github.com/forem/rfcs/issues/282

Originally came out of this discussion: forem.dev/ildi/is-it-possible-to-d...

Added/updated tests?

  • [x] Yes
  • [ ] No, and this is why: please replace this line with details on why tests have not been included
  • [ ] I need help with writing tests

[Forem core team only] How will this change be communicated?

This should mostly just fill expected behavior.

Thread Thread
 
ildi profile image
Ildi

Thanks for the update Ben!

I also really liked that suggestion above to only show supported tags in the /tags page. Would be nice to be able to focus on the important tags but maybe also have a search feature to quickly navigate to any other tag you might be interested in.