Skip to content

[Bug]: Tag aliases allow blank string values #627

Closed
@CyanVoxel

Description

@CyanVoxel

Checklist

  • I am using an up-to-date version.
  • I have read the documentation.
  • I have searched existing issues.

TagStudio Version

main branch (v9.5.0)

Operating System & Version

macOS 15.1.1

Description

Currently, tag aliases allow for blank string values in the database. When converting over JSON libraries, this also adds several blank alias entries into the database.

Expected Behavior

Empty values ("", NONE, etc.) should not be allowed as alias names as they are unhelpful and clog up the database with unintentional and meaningless values.

Steps to Reproduce

  1. Have a JSON database with several user-created tags that do not contain aliases
  2. Migrate JSON db to SQL
  3. Open SQL db in an appropriate SQLite viewing application or plugin (I used SQLite Viewer for VSCode)
  4. Observe the empty string values in alias name rows

Logs

No response

Metadata

Metadata

Assignees

Labels

Priority: HighAn important issue requiring attentionTagStudio: LibraryRelating to the TagStudio library systemTagStudio: TagsRelating to the TagStudio tag systemType: BugSomething isn't working as intended

Type

No type

Projects

Status

✅ Done

Relationships

None yet

Development

No branches or pull requests

Issue actions