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: Add missing extra field to ContainerRegistryNode GQL query, mutations #3208

Merged
merged 2 commits into from
Dec 6, 2024

Conversation

jopemachine
Copy link
Member

@jopemachine jopemachine commented Dec 5, 2024

Resolves #3209.

Checklist: (if applicable)

  • Milestone metadata specifying the target backport version
  • Mention to the original issue

@jopemachine jopemachine added the type:bug Reports about that are not working label Dec 5, 2024
@jopemachine jopemachine added this to the 24.09 milestone Dec 5, 2024
@jopemachine jopemachine self-assigned this Dec 5, 2024
@jopemachine jopemachine changed the title fix: Add missing extra field to ContainerRegistryNode GQL query, mutations fix: Add missing extra field to ContainerRegistryNode GQL query, mutations Dec 5, 2024
@jopemachine jopemachine marked this pull request as ready for review December 5, 2024 09:14
@jopemachine jopemachine requested a review from fregataa December 5, 2024 09:14
@kyujin-cho kyujin-cho added this pull request to the merge queue Dec 6, 2024
Merged via the queue into main with commit bad3b20 Dec 6, 2024
26 checks passed
@kyujin-cho kyujin-cho deleted the fix/add-extra-field-to-cr-gql-field branch December 6, 2024 12:56
lablup-octodog pushed a commit that referenced this pull request Dec 6, 2024
…mutations (#3208)

Backported-from: main (24.12)
Backported-to: 24.09
Backport-of: 3208
github-merge-queue bot pushed a commit that referenced this pull request Dec 6, 2024
yomybaby pushed a commit to lablup/backend.ai-webui that referenced this pull request Dec 23, 2024
<!--
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Reports about that are not working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add missing extra field to ContainerRegistryNode GQL query, mutations
2 participants