-
Notifications
You must be signed in to change notification settings - Fork 75
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
feat: support for extra field in registry type #2927
Conversation
Your org requires the Graphite merge queue for merging into mainAdd the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
5009cbd
to
6baf617
Compare
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 5.16% (-0.01% 🔻) |
398/7707 |
🔴 | Branches | 4.45% (-0.02% 🔻) |
237/5320 |
🔴 | Functions | 3.09% (-0% 🔻) |
78/2525 |
🔴 | Lines | 5.08% (-0.01% 🔻) |
383/7539 |
Test suite run success
124 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from d288132
6baf617
to
9708910
Compare
9708910
to
2725067
Compare
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 a condition for version compatibility.
I got an error below on v24.09.2
No data returned for operation `ContainerRegistryListQuery`, got error(s): Cannot query field 'extra' on type 'ContainerRegistryNode'. See the error `source` property for more information.
2725067
to
ff501e1
Compare
ff501e1
to
a268421
Compare
e91b22d
to
656249b
Compare
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'm not sure why you used isEmpty and isNil together, but everything else looks good to me. Good!
656249b
to
96d4d8d
Compare
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
Merge activity
|
<!-- Please precisely, concisely, and concretely describe what this PR changes, the rationale behind codes, and how it affects the users and other developers. --> ### This PR resolves [#2914](#2914) issue related Core PR: [#3208](lablup/backend.ai#3208) 24.09~24.09.2 : Using `container_registry_nodes` but does not support extra fields. 24.09.3 ~ : support extra field **Changes:** Extra field and argument are supported from version 24.09.3 onwards. Because the arguments for each mutation are not provided as input types, you must create a separate mutation if you want to exclude a specific argument. - Added `extra` field to container registry nodes to support additional JSON metadata - Added JSON editor UI component for managing extra information in container registry editor - Added validation for proper JSON formatting with error messages - Made `value` and `onChange` props optional in BAICodeEditor component - Added translations for JSON format validation messages across all languages **How to test:** 1. move to registry page 2. enter Extra Information to verify that the request succeeds only for valid JSON types. |dark|light| |---|---| |![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/lSyr8xXz1wdXALkJKzVx/2d12bdad-402f-4fdf-a3ca-f3a33c7839a2.png)|![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/lSyr8xXz1wdXALkJKzVx/1b44f9a6-384d-4f6d-9d3b-a51ed8b79e51.png)| **Checklist:** (if applicable) - [ ] Mention to the original issue - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after
96d4d8d
to
d288132
Compare
This PR resolves #2914 issue
related Core PR: #3208
24.09~24.09.2 : Using
container_registry_nodes
but does not support extra fields.24.09.3 ~ : support extra field
Changes:
Extra field and argument are supported from version 24.09.3 onwards.
Because the arguments for each mutation are not provided as input types, you must create a separate mutation if you want to exclude a specific argument.
extra
field to container registry nodes to support additional JSON metadatavalue
andonChange
props optional in BAICodeEditor componentHow to test:
Checklist: (if applicable)