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

Performer select refactor #4013

Merged
merged 7 commits into from
Aug 24, 2023

Conversation

WithoutPants
Copy link
Collaborator

This is the first step to removing the select controls which load entire datasets into the client (performers, studios and tags). This addresses the performer select specifically.

The new select control no longer uses allPerformers (and this interface has been marked as deprecated). The main select control now stores performer objects instead of ids. For ease of compatibility, a PerformerIDSelect control is added where it's not easy to use objects. This control will load performers by id as needed, and a modification to findPerformers was made to accept a list of performer ids.

The presentation of the performer results is tweaked to show the actual matching performer alias (instead of a hardcoded (alias) string), and it only shows this if the search string matches an alias.

image
(has foo is an alias of has bar).

I expect this to improve performance for users with a significant amount of performers in their database.

This change will be adapted to tags, studios and movies in future so that the all[objects] interfaces are no longer used.

@WithoutPants WithoutPants added the improvement Something needed tweaking. label Aug 9, 2023
@WithoutPants WithoutPants added this to the Version 0.23.0 milestone Aug 9, 2023
@WithoutPants WithoutPants merged commit e40b3d7 into stashapp:develop Aug 24, 2023
2 checks passed
This was referenced Jan 20, 2024
halkeye pushed a commit to halkeye/stash that referenced this pull request Sep 1, 2024
* Overhaul performer select
* Add interface to load performers by id
* Add Performer ID select and replace existing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Something needed tweaking.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant