Skip to content

Comments

Bugfix: Fix empty Aliases Being Created for Studios#6273

Merged
WithoutPants merged 6 commits intostashapp:developfrom
Gykes:Fix-Studio-Aliases
Nov 14, 2025
Merged

Bugfix: Fix empty Aliases Being Created for Studios#6273
WithoutPants merged 6 commits intostashapp:developfrom
Gykes:Fix-Studio-Aliases

Conversation

@Gykes
Copy link
Collaborator

@Gykes Gykes commented Nov 13, 2025

Fix empty aliases being created for studios. Filter out empty strings when processing studio aliases to prevent empty aliases from being saved. Fixes issue where empty aliases block studio creation/updates with 'Alias '' is in use' error.

This is untested. Will test in a few hours.

Fixes #6272

Filter out empty strings when processing studio aliases to prevent
empty aliases from being saved. Fixes issue where empty aliases
block studio creation/updates with 'Alias '' is in use' error.

Fixes stashapp#6272
@Gykes Gykes self-assigned this Nov 13, 2025
@Gykes Gykes added the needs testing Pull requests that require testing label Nov 13, 2025
@Gykes
Copy link
Collaborator Author

Gykes commented Nov 13, 2025

Managed to test this really quick. Followed the steps in the original issue and received no errors.

My Steps:
Created blank studio called 1000 Facials
Scraped it in Tagger view and Selected the appropriate studio
Had tagger automatically create the parent studio (Blowpass) and child studio
Both studios were created and meta data populated.
Scraped a scene in scene tagger for 1000Facials and also received no error at save

This was calling using the values which are not necessarily the final values.
Copy link
Collaborator

@WithoutPants WithoutPants left a comment

Choose a reason for hiding this comment

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

I changed the backend code to reject empty aliases (I've left out the trim space stuff in preference of the changes in #6226), instead of silently filtering them out.

I removed an existing invalid call to validate the aliases in the studio code update partial code, which would validate the values regardless of set mode.

Front end code looks good.

Copy link
Collaborator

@feederbox826 feederbox826 left a comment

Choose a reason for hiding this comment

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

fixes the bug, doesnt past lint 👀

@WithoutPants WithoutPants added this to the Version 0.30.0 milestone Nov 14, 2025
@WithoutPants WithoutPants merged commit 957c4fe into stashapp:develop Nov 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs testing Pull requests that require testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Empty aliases created and populated for studios

3 participants