Skip to content

[Bug]: Tags with existing names can be created #504

Closed
@vyshnav-vinod

Description

@vyshnav-vinod

Checklist

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

TagStudio Version

Alpha 9.4.1

Operating System & Version

Windows 11

Description

We can create a tag with the same name for any number of times. I tried this with the latest release (Alpha 9.4.1) and also the main branch. In the Alpha version, this is the result
image
There should be some sort of check to prevent this.

Also in the main branch, since SQL is being used and an UNIQUE constraint is given to the tag name column, the duplicate tag wont be created, but the user will not be notified of why it was not created. Some sort of a dialog box saying Tag name already exists can help solve this. I can try to work on this, but where should I implement it? In the main branch or in the Alpha branch?

Expected Behavior

Tags with existing names should not be created. A dialog box saying 'Tag already exists' or something should be shown to the user.

Steps to Reproduce

  1. Create a tag
  2. Create another tag with the same name

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working as intendedType: InvalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions