Deleting a page will not delete associated TAGs
Describe the bug After deleting a page, I can still see its associated tags in the "Browse by tags" page. Selecting one will result in "Couldn't find any page with the selected tags"
Expected behaviour If the associated tags are unique for the deleted page, I expect them to be deleted as well and not be shown in the left column of the "Browse by tags" page.
Host Info (please complete the following information):
- OS: OSX
- Wiki.js version: 2.0.0-beta.303
- Database engine: postgres 11
This feature is coming in a future build.
Tags also remain available if you delete them in the page and add new ones.
i am just starting with github can i work upon this issue.
Verified with a live fresh install of current v2 main (6f042e97, v2.5.314, PostgreSQL): the user-visible symptom described here appears fixed, with one caveat.
I created a page with a unique tag, deleted the page, then queried the same pages.tags data used by Browse by Tags. The unique tag was no longer returned, so selecting a dead tag from that screen is no longer possible.
The orphan row itself is still retained in the tags table; current pages.tags avoids exposing it by deriving tags through existing pages. Classification: visible bug fixed, orphan cleanup feature still absent.
No longer an issue in v3.