lablup / lablup/backend.ai-webui

Migrate Image Install/Delete to New GraphQL Queries

Open
#5,136 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
133
Forks
81
Avg merge
1d 11h
Merged PRs (30d)
344

Description

## Description

We plan to migrate the image **install (preload)** and **delete (unload)** workflows to use new GraphQL queries.

## Background

Image distribution to agents is currently handled via existing APIs/queries. A new set of GraphQL queries is being introduced, and once available, WebUI should use them as the primary mechanism for installing and deleting images on target agents.

## New Queries

- `preload_image(references: [String]!, target_agents: [String]!): PreloadImage`
- `unload_image(references: [String]!, target_agents: [String]!): UnloadImage`

## Scope

- Update the image **install** flow to call `preload_image` with:
- `references`: one or more image references
- `target_agents`: selected agent IDs
- Update the image **delete** flow to call `unload_image` with the same parameters.
- Ensure the UI behavior remains consistent (feature parity), including:
- validation (required fields, empty selections)
- success/error handling and user feedback
- loading/progress states (as supported by the API response)

## Acceptance Criteria

- Image install uses `preload_image` when the query is available.
- Image delete uses `unload_image` when the query is available.
- No functional regression compared to the current implementation.
- Proper error messages are shown when the operation fails for any image/agent.

## Notes

Implementation should be aligned with the finalized schema/response shape of `PreloadImage` and `UnloadImage` once the backend implementation is confirmed.

JIRA Issue: FR-1967

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.