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: change extended-image-info version to 24.12.0 #2811

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions react/data/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -320,23 +320,23 @@ type ImageNode implements Node {

"""Added in 24.03.4. The undecoded id value stored in DB."""
row_id: UUID
name: String @deprecated(reason: "Deprecated since 24.09.1. use `namespace` instead")
name: String @deprecated(reason: "Deprecated since 24.12.0. use `namespace` instead")

"""Added in 24.09.1."""
"""Added in 24.12.0."""
namespace: String

"""Added in 24.09.1."""
"""Added in 24.12.0."""
base_image_name: String

"""Added in 24.03.10."""
project: String
humanized_name: String
tag: String

"""Added in 24.09.1."""
"""Added in 24.12.0."""
tags: [KVPair]

"""Added in 24.09.1."""
"""Added in 24.12.0."""
version: String
registry: String
architecture: String
Expand Down Expand Up @@ -411,7 +411,7 @@ type DomainNode implements Node {
scaling_groups(filter: String, order: String, offset: Int, before: String, after: String, first: Int, last: Int): ScalinGroupConnection
}

"""Added in 24.09.1."""
"""Added in 24.12.0."""
scalar Bytes

"""Added in 24.12.0."""
Expand Down Expand Up @@ -757,23 +757,23 @@ type Group {

type Image {
id: UUID
name: String @deprecated(reason: "Deprecated since 24.09.1. use `namespace` instead")
name: String @deprecated(reason: "Deprecated since 24.12.0. use `namespace` instead")

"""Added in 24.09.1."""
"""Added in 24.12.0."""
namespace: String

"""Added in 24.09.1."""
"""Added in 24.12.0."""
base_image_name: String

"""Added in 24.03.10."""
project: String
humanized_name: String
tag: String

"""Added in 24.09.1."""
"""Added in 24.12.0."""
tags: [KVPair]

"""Added in 24.09.1."""
"""Added in 24.12.0."""
version: String
registry: String
architecture: String
Expand Down
2 changes: 1 addition & 1 deletion react/src/components/AliasedImageDoubleTags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const AliasedImageDoubleTags: React.FC<AliasedImageDoubleTagsProps> = ({
key
value
}
tags @since(version: "24.09.1") {
tags @since(version: "24.12.0") {
key
value
}
Expand Down
14 changes: 7 additions & 7 deletions react/src/components/CustomizedImageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const CustomizedImageList: React.FC<PropsWithChildren> = ({ children }) => {
query CustomizedImageListQuery {
customized_images {
id
name @deprecatedSince(version: "24.09.1")
name @deprecatedSince(version: "24.12.0")
humanized_name
tag
registry
Expand All @@ -88,13 +88,13 @@ const CustomizedImageList: React.FC<PropsWithChildren> = ({ children }) => {
value
}
supported_accelerators
namespace @since(version: "24.09.1")
base_image_name @since(version: "24.09.1")
tags @since(version: "24.09.1") {
namespace @since(version: "24.12.0")
base_image_name @since(version: "24.12.0")
tags @since(version: "24.12.0") {
key
value
}
version @since(version: "24.09.1")
version @since(version: "24.12.0")
...AliasedImageDoubleTagsFragment
}
}
Expand Down Expand Up @@ -136,7 +136,7 @@ const CustomizedImageList: React.FC<PropsWithChildren> = ({ children }) => {
namespace: supportExtendedImageInfo ? image?.namespace : image?.name,
fullName: getImageFullName(image) || '',
digest: image?.digest || '',
// ------------ need only before 24.09.1 ------------
// ------------ need only before 24.12.0 ------------
lang: image?.name ? getLang(image.name) : '',
baseversion: getBaseVersion(getImageFullName(image) || ''),
baseimage:
Expand All @@ -152,7 +152,7 @@ const CustomizedImageList: React.FC<PropsWithChildren> = ({ children }) => {
? image.tag.indexOf('customized') !== -1
: false,
// -------------------------------------------------
// ------------ need only after 24.09.1 ------------
// ------------ need only after 24.12.0 ------------
baseImageName: supportExtendedImageInfo ? image?.base_image_name : '',
tags: supportExtendedImageInfo ? image?.tags : [],
version: supportExtendedImageInfo ? image?.version : '',
Expand Down
10 changes: 5 additions & 5 deletions react/src/components/ImageEnvironmentSelectFormItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const ImageEnvironmentSelectFormItems: React.FC<
query ImageEnvironmentSelectFormItemsQuery($installed: Boolean) {
images(is_installed: $installed) {
id
name @deprecatedSince(version: "24.09.1")
name @deprecatedSince(version: "24.12.0")
humanized_name
tag
registry
Expand All @@ -128,13 +128,13 @@ const ImageEnvironmentSelectFormItems: React.FC<
key
value
}
namespace @since(version: "24.09.1")
base_image_name @since(version: "24.09.1")
tags @since(version: "24.09.1") {
namespace @since(version: "24.12.0")
base_image_name @since(version: "24.12.0")
tags @since(version: "24.12.0") {
key
value
}
version @since(version: "24.09.1")
version @since(version: "24.12.0")
}
}
`,
Expand Down
14 changes: 7 additions & 7 deletions react/src/components/ImageList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const ImageList: React.FC<{ style?: React.CSSProperties }> = ({ style }) => {
query ImageListQuery {
images {
id
name @deprecatedSince(version: "24.09.1")
name @deprecatedSince(version: "24.12.0")
tag
registry
architecture
Expand All @@ -90,13 +90,13 @@ const ImageList: React.FC<{ style?: React.CSSProperties }> = ({ style }) => {
min
max
}
namespace @since(version: "24.09.1")
base_image_name @since(version: "24.09.1")
tags @since(version: "24.09.1") {
namespace @since(version: "24.12.0")
base_image_name @since(version: "24.12.0")
tags @since(version: "24.12.0") {
key
value
}
version @since(version: "24.09.1")
version @since(version: "24.12.0")
}
}
`,
Expand Down Expand Up @@ -429,7 +429,7 @@ const ImageList: React.FC<{ style?: React.CSSProperties }> = ({ style }) => {
namespace: supportExtendedImageInfo ? image?.namespace : image?.name,
fullName: getImageFullName(image) || '',
digest: image?.digest || '',
// ------------ need only before 24.09.1 ------------
// ------------ need only before 24.12.0 ------------
lang: image?.name ? getLang(image.name) : '',
baseversion: getBaseVersion(getImageFullName(image) || ''),
baseimage:
Expand All @@ -445,7 +445,7 @@ const ImageList: React.FC<{ style?: React.CSSProperties }> = ({ style }) => {
? image.tag.indexOf('customized') !== -1
: false,
// -------------------------------------------------
// ------------ need only after 24.09.1 ------------
// ------------ need only after 24.12.0 ------------
baseImageName: supportExtendedImageInfo ? image?.base_image_name : '',
tags: supportExtendedImageInfo ? image?.tags : [],
version: supportExtendedImageInfo ? image?.version : '',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/backend.ai-client-esm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ class Client {
this._features['extend-login-session'] = true;
this._features['session-node'] = true;
}
if (this.isManagerVersionCompatibleWith('24.09.1')) {
if (this.isManagerVersionCompatibleWith('24.12.0')) {
this._features['extended-image-info'] = true;
}
}
Expand Down
Loading