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

Update performer gender filter in identify dialog #5588

Closed

Conversation

mooangus
Copy link

@mooangus mooangus commented Jan 2, 2025

Fixes #4096

Deprecate includeMalePerformers field in favor of performerGenders field in the GraphQL schema and update the UI to support gender selection.

  • GraphQL Schema Changes:

    • Add performerGenders: [GenderEnum!] field to IdentifyMetadataOptionsInput type.
    • Deprecate includeMalePerformers field in IdentifyMetadataOptionsInput type.
    • Add performerGenders field to SceneFilterType and PerformerFilterType inputs.
  • API Changes:

    • Update FindPerformers method in resolver_query_find_performer.go to filter performers based on performerGenders field.
    • Update FindScenes method in resolver_query_find_scene.go to filter scenes based on performerGenders field.
    • Update getOptions and getSceneUpdater methods in identify.go to handle performerGenders field.
  • UI Changes:

    • Update getDefaultOptions and makeIdentifyInput functions in IdentifyDialog.tsx to include performerGenders field.
    • Add new input for selecting performer genders in Options.tsx using MultiSelectDropdown component.

For more details, open the Copilot Workspace session.

Fixes #4096

Deprecate `includeMalePerformers` field in favor of `performerGenders` field in the GraphQL schema and update the UI to support gender selection.

* **GraphQL Schema Changes:**
  - Add `performerGenders: [GenderEnum!]` field to `IdentifyMetadataOptionsInput` type.
  - Deprecate `includeMalePerformers` field in `IdentifyMetadataOptionsInput` type.
  - Add `performerGenders` field to `SceneFilterType` and `PerformerFilterType` inputs.

* **API Changes:**
  - Update `FindPerformers` method in `resolver_query_find_performer.go` to filter performers based on `performerGenders` field.
  - Update `FindScenes` method in `resolver_query_find_scene.go` to filter scenes based on `performerGenders` field.
  - Update `getOptions` and `getSceneUpdater` methods in `identify.go` to handle `performerGenders` field.

* **UI Changes:**
  - Update `getDefaultOptions` and `makeIdentifyInput` functions in `IdentifyDialog.tsx` to include `performerGenders` field.
  - Add new input for selecting performer genders in `Options.tsx` using `MultiSelectDropdown` component.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/stashapp/stash/issues/4096?shareId=XXXX-XXXX-XXXX-XXXX).
@mooangus mooangus closed this Jan 3, 2025
@mooangus mooangus deleted the update-performer-gender-filter branch January 3, 2025 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Add "Include female performers" checkbox to Identify
1 participant