-
Notifications
You must be signed in to change notification settings - Fork 67
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
hotfix: regression of image info display in serving page #2244
hotfix: regression of image info display in serving page #2244
Conversation
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 2.9% (-0% 🔻) |
102/3512 |
🔴 | Branches | 3.09% (-0.01% 🔻) |
69/2235 |
🔴 | Functions | 1.44% | 17/1179 |
🔴 | Lines | 2.96% (-0% 🔻) |
102/3448 |
Test suite run success
20 tests passing in 4 suites.
Report generated by 🧪jest coverage report action from 9b35fe4
@@ -113,7 +113,26 @@ const RoutingListPage: React.FC<RoutingListPageProps> = () => { | |||
name | |||
status | |||
endpoint_id | |||
image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To ensure backward compatibility, we should use different images based on the version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just added conditional statement to check whether current core version supports image_object
key in endpoint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add @deprecatedSince
like this:
image @deprecatedSince(version: "23.09.9")
@@ -113,7 +113,26 @@ const RoutingListPage: React.FC<RoutingListPageProps> = () => { | |||
name | |||
status | |||
endpoint_id | |||
image |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add @deprecatedSince
like this:
image @deprecatedSince(version: "23.09.9")
react/src/pages/ServingListPage.tsx
Outdated
image | ||
image_object @since(version: "23.09.9") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thia page doesn't use image
and image_object
, right?. If yes, please remove these in this file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Checklist: (if applicable)
This PR fixes two thing,
Show full-image string in Routing page, as a regression of replacing deprecated
image
key inendpoint
toimage_object
.Supports architecture on same image string (multiarch) by extracting from full-image string
Core(manager) version:
23.9.9~
How to test:
Start service
button.cr.backend.ai/multiarch/python:3.9-ubuntu20.04@aarch64
) in manual image input fieldCreate
button.