-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: replace name with namespace (#2787)
# Support for Extended Image Info This PR introduces support for the extended image info feature, which affects how image namespaces are handled and displayed throughout the application. **Changes:** - Added a `supportExtendedImageInfo` flag based on the backend client's capabilities - Updated image queries to use `namespace` instead of `name` when extended image info is supported - Modified image full name generation to prioritize `namespace` over `name` - Adjusted environment selection logic to use `namespace` when available - Updated table columns in MyEnvironmentPage to display and sort by `namespace` when supported **Rationale:** These changes allow the application to work with both the old and new image information structures, providing a smooth transition as the backend evolves. **Effects:** - Users will see more accurate namespace information when using a backend that supports extended image info - Developers should be aware of the `supportExtendedImageInfo` flag when working with image-related components **How to test:** 1. Checkout core branch to `topic/10-22-feature_add_info_field_to_gql_image_schema` 2. Check the environments, my environments, session page which are using `namespace` (before lablup/backend.ai#2939, it was `name`.) of `images` query. **Screenshots:** In #2785, the part of the full image path field had `undefined`. But it has some value now. ![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/a2553afe-d555-40b3-bc4e-bb1b79fa4b87.png) **Checklist:** - [ ] Mention to the original issue - [ ] Documentation - [x] Minium required manager version: 24.09.1 - [x] Specific setting for review - [x] Minimum requirements to check during review: - Verify that image namespaces are correctly displayed and used when extended image info is supported - Ensure backwards compatibility with older backend versions - [ ] Test case(s) to demonstrate the difference of before/after
- Loading branch information
Showing
6 changed files
with
82 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters