Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Strengthen join condition between kernels and images #2993

Conversation

fregataa
Copy link
Member

@fregataa fregataa commented Oct 29, 2024

Currently KernelRow.image_row requires a join on kernels.image and images.name column which is not unique.
e.g. multiarch images may have multiple records with the same name value and in different architecture values.

Let's apply a strict join condition by check architecture column

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version

Copy link
Member Author

fregataa commented Oct 29, 2024

@github-actions github-actions bot added comp:manager Related to Manager component size:XS ~10 LoC labels Oct 29, 2024
@fregataa fregataa added this to the 24.03 milestone Oct 29, 2024
@fregataa fregataa marked this pull request as ready for review October 29, 2024 05:23
@fregataa fregataa changed the title fix: Set strict join condition between kernels and images fix: Strengthen join condition between kernels and images Oct 29, 2024
@fregataa fregataa added this pull request to the merge queue Oct 29, 2024
Merged via the queue into main with commit d8cc124 Oct 29, 2024
24 checks passed
@fregataa fregataa deleted the topic/10-29-fix_set_strict_join_condition_between_kernels_and_images branch October 29, 2024 05:31
lablup-octodog pushed a commit that referenced this pull request Oct 29, 2024
Backported-from: main (24.12)
Backported-to: 24.09
Backport-of: 2993
lablup-octodog pushed a commit that referenced this pull request Oct 29, 2024
Backported-from: main (24.12)
Backported-to: 24.03
Backport-of: 2993
github-merge-queue bot pushed a commit that referenced this pull request Oct 29, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 29, 2024
agatha197 added a commit to lablup/backend.ai-webui that referenced this pull request Nov 5, 2024
related PR: lablup/backend.ai#2939

# Extended Image Information Support

This PR adds support for extended image information in the ImageList component and related translations. It introduces new fields and modifies the display of image details when the backend supports the 'extended-image-info' feature.

**Checklist:**
- [ ] Minimum required manager version: 24.09.1

## Changes

1. Updated `ImageListQuery` to include new fields: `namespace`, `base_image_name`, `tags`, and `version`.
2. Modified the ImageList component to conditionally render columns based on the `supportExtendedImageInfo` flag.
3. Added new translations for "Base image name" and "Tags" in multiple languages.
4. Updated the backend client to support the 'extended-image-info' feature for manager version 24.09.1 and above.

## Impact

- Users will see more detailed image information when using a compatible backend version.
- The image list will display new columns for base image name and tags when supported.
- Existing functionality is preserved for older backend versions.

## Review Notes

- Verify that the image list displays correctly with both old and new backend versions.
- Check that new translations are applied correctly in different languages.
- Ensure that sorting and filtering work properly with the new fields.

## How to test
1. Checkout core branch to `topic/10-22-feature_add_info_field_to_gql_image_schema` lablup/backend.ai#2993
2. Go to Environment page.

## What to check:
- [ ] Check the data is valid.
  - [ ]  Since 24.09.1: Full image path, Registry, Architecture, Namespace, Base image name, Version, Tags, Digest, Resource limit, Control.
  - [ ] Before 24.09.1: Full image path, Registry, Architecture, Name, Language, Version, Base, Constraints, Digest, Resource limit, Control.
- [ ] All data is highlightable by searching images.
- [ ] Sortable data works fine.

## Screenshots

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/2HueYSdFvL8pOB5mgrUQ/88e5ad80-559a-4b41-a93a-5a08f3a4c062.png)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:manager Related to Manager component size:XS ~10 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant