Skip to content

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

Open
slick-daddy wants to merge 1 commit intostashapp:developfrom
slick-daddy:patch-7
Open

Add 'aliases' filter to Group (GraphQL, backend, tests, and UI)#6896
slick-daddy wants to merge 1 commit intostashapp:developfrom
slick-daddy:patch-7

Conversation

@slick-daddy
Copy link
Copy Markdown
Contributor

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

Closes #4383

Motivation

  • Enable filtering groups by their aliases end-to-end so consumers 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.

Testing

  • Ran unit tests for the SQLite group filters including the new TestGroupQueryAliases in pkg/sqlite, and they passed.
  • Ran the existing group-related tests to ensure no regressions in group filtering, and they passed.

Add 'aliases' filter to Group (GraphQL, backend, tests, and UI)
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] Ability to filter Groups by Aliases

1 participant