-
-
Notifications
You must be signed in to change notification settings - Fork 460
[Bug]: TagParents not being deleted when deleting Tag #1105
Copy link
Copy link
Labels
Priority: CriticalAn issue that requires immediate attentionAn issue that requires immediate attentionTagStudio: LibraryRelating to the TagStudio library systemRelating to the TagStudio library systemTagStudio: TagsRelating to the TagStudio tag systemRelating to the TagStudio tag systemType: BugSomething isn't working as intendedSomething isn't working as intended
Milestone
Metadata
Metadata
Assignees
Labels
Priority: CriticalAn issue that requires immediate attentionAn issue that requires immediate attentionTagStudio: LibraryRelating to the TagStudio library systemRelating to the TagStudio library systemTagStudio: TagsRelating to the TagStudio tag systemRelating to the TagStudio tag systemType: BugSomething isn't working as intendedSomething isn't working as intended
Type
Fields
Give feedbackNo fields configured for Bug.
Projects
StatusShow more project fields
✅ Done
Checklist
TagStudio Version
main branch (Alpha 9.5.4+)
Operating System & Version
macOS 15.6.1
Description
TagParents are not being deleted from the
tag_parentstable in the database when deleting a Tag from thetagstable. I came across this error before #1103 was merged but didn't track down the cause until afterwards.Expected Behavior
When a tag is deleted from the database, all references of that tag should also be removed. This includes any rows in
tag_parentsin which that tag's ID was involved in a relationship.Any current libraries that are affected by this issue also need to be repaired and have these invalid tag_parents deleted.
Steps to Reproduce
Logs
When viewing an entry that has a tag referencing a deleted parent: