Skip to content

feat(BA-4818): add alias filter to ImageV2FilterGQL#9563

Open
fregataa wants to merge 3 commits intomainfrom
BA-4818
Open

feat(BA-4818): add alias filter to ImageV2FilterGQL#9563
fregataa wants to merge 3 commits intomainfrom
BA-4818

Conversation

@fregataa
Copy link
Member

@fregataa fregataa commented Mar 1, 2026

Summary

  • Add alias: StringFilter field to ImageV2FilterGQL input type
  • Wire alias filter to ImageAliasConditions.by_alias_* factories in build_conditions()
  • Supports contains, equals, startsWith, and endsWith operations on image aliases

Test plan

  • Verify GraphQL schema exposes the new alias field on ImageV2FilterGQL
  • Test alias filtering with contains, equals, startsWith, endsWith
  • Confirm logical operators (AND, OR, NOT) work with alias filter

Resolves BA-4818

Add alias field to ImageV2FilterGQL input type and wire it to
ImageAliasConditions.by_alias_* factories in build_conditions(),
supporting contains, equals, startsWith, and endsWith operations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 1, 2026 13:46
@github-actions github-actions bot added the size:S 10~30 LoC label Mar 1, 2026
@github-actions github-actions bot added the comp:manager Related to Manager component label Mar 1, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds GraphQL filtering support for image aliases by extending ImageV2FilterGQL and wiring the filter into query condition building.

Changes:

  • Add alias: StringFilter to ImageV2FilterGQL.
  • Build query conditions for alias using ImageAliasConditions.by_alias_* factories.
  • Add a changelog entry documenting the new alias filter support.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/ai/backend/manager/api/gql/image/types.py Adds alias to the GraphQL filter input and wires it into build_conditions() via ImageAliasConditions.
changes/9563.feature.md Documents the new alias filtering feature in the changelog.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fregataa fregataa added this to the 26.3 milestone Mar 1, 2026
Co-authored-by: octodog <mu001@lablup.com>
@github-actions github-actions bot added the area:docs Documentations label Mar 1, 2026
@fregataa fregataa requested a review from a team March 1, 2026 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs Documentations comp:manager Related to Manager component size:S 10~30 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants