Skip to content

Add 'aliases' filter to Group (GraphQL, backend, tests, and UI) - #6896

Open
slick-daddy wants to merge 8 commits into
stashapp:developfrom
slick-daddy:patch-7
Open

Add 'aliases' filter to Group (GraphQL, backend, tests, and UI)#6896
slick-daddy wants to merge 8 commits into
stashapp:developfrom
slick-daddy:patch-7

Conversation

@slick-daddy

@slick-daddy slick-daddy commented May 8, 2026

Copy link
Copy Markdown
Contributor

Closes #4383

Motivation

  • Enable filtering groups by their aliases end-to-end so users can query and list groups by alias values.
  • Expose the new filter in the GraphQL schema and support it in the SQLite query builder.
  • Surface the option in the UI list filter so users can create alias-based criteria.

Description

  • Added aliases: StringCriterionInput to the GraphQL GroupFilterType in filters.graphql.
  • Added Aliases *StringCriterionInput to the Go models.GroupFilterType and wired a stringCriterionHandler for groups.aliases in the SQLite group filter handler.
  • Added unit test TestGroupQueryAliases in pkg/sqlite/group_test.go to validate alias filtering with multiple criterion modifiers.
  • Exposed aliases in the UI list filter options by adding createStringCriterionOption("aliases") in ui/v2.5/src/models/list-filter/groups.ts.

@Gykes

Gykes commented May 22, 2026

Copy link
Copy Markdown
Collaborator

I think this one should wait until #6951 lands.

slick-daddy and others added 8 commits July 9, 2026 17:15
Add 'aliases' filter to Group (GraphQL, backend, tests, and UI)
The previous value 'oup_0001_A' was a magic offset substring of
'group_0001_Aliases' (positions 2-12). Changed to '0001_Ali'
(positions 6-14) which starts at a natural boundary after the
'group_' prefix, making it immediately obvious it's a substring.
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.

Ability to filter Groups by Alias

2 participants