Windows11 (25H2), display resolution 3840x2160, dpi scale 150%
Browser - categories
'Delete unused Categories...' command fails to preserve hierarchy, deleting unused ancestors of used tags (case c)
Code: Select all
initial expected current
a (1) a (1) a (1)
b (0)
c (0) c (0)
└─ c1 (1) └─ c1 (1)
└─ c2 (0)
- current
user0 wrote: Sun Mar 23, 2025 1:47 pm
- add 'Delete unused (empty) Categories..'
command to delete cats that have not assigned to any image (have no records in TagsTree table), egCode: Select all
DELETE FROM Tags WHERE NOT EXISTS ( SELECT 1 FROM TagsTree WHERE TagsTree.TagID = Tags.TagID );
- add 'Delete unused (empty) Categories..'
- expected
this sql works as expectedCode: Select all
WITH RECURSIVE Keepers(ID) AS ( SELECT TagID FROM TagsTree UNION SELECT t.ParentID FROM Tags t JOIN Keepers k ON t.TagID = k.ID WHERE t.ParentID != -1 ) DELETE FROM Tags WHERE NOT EXISTS ( SELECT 1 FROM Keepers WHERE Keepers.ID = Tags.TagID );
Related
- issues
1.11.2 - browser - categories - Delete unused Categories - fix ancestor deletion (current post)
- todo -
1.4.4 - viewer - categories - not possible to modify categories via properties
- fixed -
1.9.3 - browser - category sets - pane minimum size depends on combobox (1.9.4)
1.9.2 - browser - category sets - create set from selection issue (1.9.3)
1.9.1 - browser - category sets - formatting issue with autoassign (1.9.2)
1.8.3 - browser - categories - 'Hide assigned categories' has no effect (1.9.0)
1.5.0 - browser - category sets - no duplicate check (1.5.0)
1.4.4 - browser - categories - inconsistency in Category creation routine (1.5.0)
- suggestions
Browser - Categories - add Undo functionality
Browser - Categories - search - highlight matching characters
Browser - Categories - add counter and sort order selector
Browser - Category Sets - formatting and management
Browser - metadata - Update catalog/file commands - clarify behavior
Categories - menu - add Uncategorized and Sets
Categories - shortcut - show in Set Category menu
Categories - shortcut - add Unassign functionality
Shortcuts - general - add commands to increase/decrease rating/color label
Browser - favourites/categories - allow drag to root level
- todo -
Browser - Categories - sort order - change to numeric
- done -
Browser - Category Sets - rework formatting (1.9.0)
Browser - Category Sets - Assigned, Suggested - improve update trigger (1.9.0)
Browser - Categories - clean up menu (1.9.0)
Browser - Categories, Category Sets - add Delete unused, rearrange controls (1.8.7)
Tag - merge Tag / Untag (1.7.0)