wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Deleting a page will not delete associated TAGs

Open theidleguest opened this issue 7 years ago • 5 comments

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

theidleguest avatar Oct 16 '19 07:10 theidleguest

This feature is coming in a future build.

NGPixel avatar Oct 17 '19 01:10 NGPixel

Tags also remain available if you delete them in the page and add new ones.

Starina123 avatar Oct 31 '19 18:10 Starina123

i am just starting with github can i work upon this issue.

pretrator avatar Nov 11 '19 15:11 pretrator

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.

TimoKruth avatar Aug 06 '26 18:08 TimoKruth

No longer an issue in v3.

NGPixel avatar Sep 27 '26 22:09 NGPixel