Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't allow blank tag alias values in db (Fix #627) #628

Merged
merged 1 commit into from
Dec 9, 2024
Merged

Conversation

CyanVoxel
Copy link
Member

This PR fixes #627 by not allowing empty string values for tag aliases inside the database.

@CyanVoxel CyanVoxel added Type: Bug Something isn't working as intended TagStudio: Library Relating to the TagStudio library system Priority: High An important issue requiring attention TagStudio: Tags Relating to the TagStudio tag system Status: Review Needed A review of this is needed labels Dec 4, 2024
@CyanVoxel CyanVoxel added this to the SQL Parity milestone Dec 4, 2024
Copy link
Collaborator

@Computerdores Computerdores left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good! As for testing, are there any cases that are fixed when using the frontend? Adding empty aliases already doesn't work on main

Edit: If this is just extra checks to make sure the DB doesn't allow invalid data to be created, then I think this is ready for merge.

@CyanVoxel CyanVoxel removed the Status: Review Needed A review of this is needed label Dec 9, 2024
@CyanVoxel CyanVoxel merged commit aaea0b1 into main Dec 9, 2024
10 checks passed
@CyanVoxel CyanVoxel deleted the fix-627 branch December 9, 2024 19:44
DandyDev01 pushed a commit to DandyDev01/TagStudio that referenced this pull request Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High An important issue requiring attention TagStudio: Library Relating to the TagStudio library system TagStudio: Tags Relating to the TagStudio tag system Type: Bug Something isn't working as intended
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Bug]: Tag aliases allow blank string values
2 participants