Skip to content

Conversation

@Gykes
Copy link
Collaborator

@Gykes Gykes commented Nov 22, 2025

Changed the performer matching logic in createNewPerformer to use remote_site_id instead of name when updating search results. This ensures only the specific performer being created gets updated with the new stored_id, preventing the previous performer from being unmatched between performers with matching names

Fixes: #6038

@Gykes Gykes added backend Pull requests that update Go code needs testing Pull requests that require testing and removed backend Pull requests that update Go code labels Nov 22, 2025
@DogmaDragon
Copy link
Collaborator

Reminder for myself: test non-stash-box source.

@Gykes
Copy link
Collaborator Author

Gykes commented Nov 23, 2025

So, I actually thought about this last night as I went to bed. I don't think non stashbox sources will return a remote ID so I will probably change it up so that if one exists use that if not revert to name

Comment on lines 673 to 678
// Match by remote_site_id if available, otherwise fall back to name
const matches = performer.remote_site_id
? p.remote_site_id === performer.remote_site_id
: p.name === performer.name;

if (matches) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

performer.remote_site_id is known to be defined at the top of this function. This change won't be necessary.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed this from performer link. I haven't been able to do much testing on this as it's hard for me to reproduce.

@WithoutPants WithoutPants added this to the Version 0.30.0 milestone Nov 24, 2025
@stashapp stashapp deleted a comment from discourse-stashapp Nov 25, 2025
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.

Tested with stash-box source, and I'm satisfied that it will work for non-stash-box sources.

@WithoutPants WithoutPants merged commit d14053b into stashapp:develop Nov 26, 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.

[Bug Report] Creating new performers with same name unmatches other performers

3 participants