lablup / lablup/backend.ai

Support image filtering by alias in ImageV2 GQL API

Open
#9,559 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

Enable GraphQL clients to filter images by alias name in the ImageV2 API.

## Background

Currently, ImageV2FilterGQL supports filtering by:

- status (ALIVE, DELETED)

- name (canonical image name)

- architecture (x86_64, aarch64)

However, users cannot filter images by their alias names (e.g., "python", "tensorflow").

## Proposed Solution

Add alias filter support using subquery-based filtering:

- Filter images by alias name (contains, equals, startsWith, endsWith)

- Use IN subquery to avoid JOIN complexity

- No ordering support (aliases can have multiple values)

## Implementation Scope

1. Repository layer: Add alias filter conditions to ImageConditions

2. API/GQL layer: Add alias field to ImageV2FilterGQL

JIRA Issue: BA-4817

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.