-
-
Notifications
You must be signed in to change notification settings - Fork 840
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
Add gender support for performer #371
Add gender support for performer #371
Conversation
I was branched from wrong commit. Reversing b6d722a, which is for different PR. |
…ting" This reverts commit b6d722a.
From a quick look at the code it seems to me that the import/export functionality (task_import.go task_export.go ) isn't updated to reflect the addition of the |
I'd prefer to have the gender be an enum of possible values (like in https://github.com/stashapp/stash-box/blob/stash_prototype/graphql/schema/types/performer.graphql) rather than a free-text field. |
Can I do anything to help on this one? |
The stashbox code I linked is adapted from the same codebase as stash, so shouldn't be too difficult to port over. You'll need to add the gender enum and change the gender types of the Performer type and the inputs, as well as the filter. The stashbox code should also give an indication as to how the translation works between enum and string. |
Changed the gender field to an enum of: Male, Female, Transgender Male, Transgender Female, Intersex. Added import/export changes. |
Co-authored-by: HiddenPants255 <> Co-authored-by: WithoutPants <[email protected]>
Co-authored-by: HiddenPants255 <> Co-authored-by: WithoutPants <[email protected]>
I have added "gender" field in "performers" table and update the UI to allow gender selection.