joplin icon indicating copy to clipboard operation
joplin copied to clipboard

Unused tags stay listed in the sqlite DB

Open alondmnt opened this issue 1 year ago • 4 comments

Unused tags stay listed in the sqlite DB. Could be that this is intended, and in that case my apologies.

Environment

Joplin version: 2.12.10 Platform: macOS OS specifics: Ventura 13.4.1 (arm64)

Steps to reproduce

  1. Turn off note history (just to demonstrate that this is unrelated to history).
  2. Add a new tag (used for the first time) to a note.
  3. Remove the tag from the note using the tags dialog.
  4. Check the tags table in the DB. You may verify that the tag ID is unused, e.g. in the tags_with_note_count view.

Describe what you expected to happen

I expected unused tags not to linger in the DB, as orphan tags can accumulate needlessly. I noticed that they are removed from the tags table when running the command "remove" from the tags context menu.

alondmnt avatar Aug 11 '23 18:08 alondmnt