-
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: fetch container registries with new nodes query #2746
feat: fetch container registries with new nodes query #2746
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. |
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @agatha197 and the rest of your teammates on Graphite |
baabae1
to
924a6c1
Compare
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 5.15% | 348/6752 |
🔴 | Branches | 4.7% | 218/4643 |
🔴 | Functions | 3.02% | 67/2222 |
🔴 | Lines | 5.05% | 333/6597 |
Test suite run success
93 tests passing in 12 suites.
Report generated by 🧪jest coverage report action from ccb9a9b
326e2fd
to
a7ab1ed
Compare
5d2b8ab
to
983c8ff
Compare
fa69e9c
to
18d5597
Compare
18d5597
to
84e86de
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
|
- related PR: lablup/backend.ai#1917, lablup/backend.ai#2888 **TR;DR** New GraphQL queries and mutations have been added related to the Registry since 24.09. Internally, the management from etcd has been changed to DB table. Therefore, version management is as follows: - 24.09.0 and above: Use `ContainerRegistryList.tsx`, `ContainerRegistryEditorModal.tsx` - 23.09.2 and above but below 24.09.0: Use `ContainerRegistryListBefore2409.tsx`, `ContainerRegistryEditorModalBefore2409.tsx` - Below 23.09.2: Use `backend-ai-registry-list.ts` **What's changed** - `ContainerRegistryList.tsx` and `ContainerRegistryEditorModal.tsx` have been renamed to `ContainerRegistryListBefore2409.tsx`, `ContainerRegistryEditorModalBefore2409.tsx`. - From 24.09.0, `ContainerRegistryList.tsx` and `ContainerRegistryEditorModal.tsx` use `container_registry_nodes` related query and mutation. - Pagination and sorting (only for registry name) are supported. - Updated schema **How to test** 1. Change https://github.com/lablup/backend.ai-webui/blob/7163812c4b3a70679b0efb347e11b52c3f9948cb/react/src/pages/EnvironmentPage.tsx#L65-L73 to like this. ```ts isSupportContainerRegistryGraphQL ? ( <ContainerRegistryList /> ) : ( ```` 2. Change this line https://github.com/lablup/backend.ai-webui/blob/7163812c4b3a70679b0efb347e11b52c3f9948cb/react/src/components/ContainerRegistryList.tsx#L87 to like this. (since 24.09.0 is not released yet). ```ts ) @SInCE(version: "24.09.0b1") { ``` 3. Go to Environments - Registries page. **Checklist for reviewers** - [ ] CRUD registries. - [ ] The project is set to 'library' when the type is 'docker' and the input field is disabled. - [ ] Registry name filtering and sorting work well. - [ ] Pagination works well. - For testing this, you can add '1' option to this line. https://github.com/lablup/backend.ai-webui/blob/a7ab1ed6fe540070010f87a437f52c1c42b30abc/react/src/components/ContainerRegistryList.tsx#L347 **Checklist:** (if applicable) - [x] Mention to the original issue - [ ] Documentation - [x] Minium required manager version - [x] Specific setting for review (eg., KB link, endpoint or how to setup) - [x] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after
84e86de
to
ccb9a9b
Compare
Etcd
toPostgreSQL
backend.ai#1917, fix: Make image table's project, registry_id column nullable backend.ai#2888TR;DR
New GraphQL queries and mutations have been added related to the Registry since 24.09. Internally, the management from etcd has been changed to DB table. Therefore, version management is as follows:
ContainerRegistryList.tsx
,ContainerRegistryEditorModal.tsx
ContainerRegistryListBefore2409.tsx
,ContainerRegistryEditorModalBefore2409.tsx
backend-ai-registry-list.ts
What's changed
ContainerRegistryList.tsx
andContainerRegistryEditorModal.tsx
have been renamed toContainerRegistryListBefore2409.tsx
,ContainerRegistryEditorModalBefore2409.tsx
.ContainerRegistryList.tsx
andContainerRegistryEditorModal.tsx
usecontainer_registry_nodes
related query and mutation.How to test
backend.ai-webui/react/src/pages/EnvironmentPage.tsx
Lines 65 to 73 in 7163812
backend.ai-webui/react/src/components/ContainerRegistryList.tsx
Line 87 in 7163812
Checklist for reviewers
backend.ai-webui/react/src/components/ContainerRegistryList.tsx
Line 347 in a7ab1ed
Checklist: (if applicable)