-
Notifications
You must be signed in to change notification settings - Fork 163
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
Archive and restore registered models #2836
Archive and restore registered models #2836
Conversation
/hold please merge #2815 first |
adca129
to
3e76886
Compare
3e76886
to
a7f13b4
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2836 +/- ##
==========================================
+ Coverage 77.44% 77.54% +0.10%
==========================================
Files 1110 1117 +7
Lines 23521 23689 +168
Branches 5937 5963 +26
==========================================
+ Hits 18215 18369 +154
- Misses 5306 5320 +14
... and 5 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
a7f13b4
to
bf2b2bb
Compare
...nd/src/pages/modelRegistry/screens/RegisteredModelsArchive/RegisteredModelArchiveDetails.tsx
Outdated
Show resolved
Hide resolved
...es/modelRegistry/screens/RegisteredModelsArchive/RegisteredModelArchiveDetailsBreadcrumb.tsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/modelRegistry/screens/RegisteredModelsArchive/RegisteredModelsArchive.tsx
Outdated
Show resolved
Hide resolved
.../src/pages/modelRegistry/screens/RegisteredModelsArchive/RegisteredModelsArchiveListView.tsx
Outdated
Show resolved
Hide resolved
.../src/pages/modelRegistry/screens/RegisteredModelsArchive/RegisteredModelsArchiveListView.tsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/modelRegistry/screens/RegisteredModels/RegisteredModelTableRow.tsx
Show resolved
Hide resolved
d4271be
to
8728ebd
Compare
@manaswinidas Thanks for all the work! They look really great! Several comments -
|
8728ebd
to
412d440
Compare
@yih-wang Thanks for pointing these out. The 2nd and 3rd points are taken care of. The screencap is replaced in the PR description. 1st point) Is there a way to achieve this? Are you talking about the position prop? I tried doing that but the button still jumps for me. 4th point) I saw this on the projects page, so I guess there might be a need for the global RFE(not sure about this) |
This button jumping issue is now fixed. Screen.Recording.2024-05-30.at.11.mp4 |
412d440
to
226b8dd
Compare
frontend/src/pages/modelRegistry/screens/ModelVersions/ModelVersionsHeaderActions.tsx
Show resolved
Hide resolved
@manaswinidas The updates look good! One more comment to the latest video you attached - After the model has been archived and the page returns to the models list, if there are no models anymore, the empty state shows a 'find nothing' state. It should show the empty state for no registered model instead. |
226b8dd
to
eae37d0
Compare
@lucferbux Are we removing |
Yes @yih-wang is right, you are not doing a search, you are showing an empty table of archive models, it's not related to internal registry but rather to the archived modeles we have there, so it should display the screen haley is pointing out |
@lucferbux The search page isn't the archived models page but the registered models list page(the one we see when we first click on Model Registry from the left nav). I'm looking into it. I don't see it on main, so there indeed is an issue there. |
eae37d0
to
ad0a490
Compare
ad0a490
to
5f9f331
Compare
893bea4
to
41e5a7e
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.
Everything LGTM except one stray console.log!
frontend/src/pages/modelRegistry/screens/RegisteredModels/RegisteredModelListView.tsx
Outdated
Show resolved
Hide resolved
41e5a7e
to
64d2391
Compare
frontend/src/__tests__/cypress/cypress/tests/mocked/modelRegistry/RegisteredModelArchive.cy.ts
Outdated
Show resolved
Hide resolved
5ee88bd
to
23cdd00
Compare
81d9722
to
0408177
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
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dpanshug, mturley The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Closes: https://issues.redhat.com/browse/RHOAIENG-6637
Closes: https://issues.redhat.com/browse/RHOAIENG-6638
Description
Added table and modals for archiving and restoring registered models.
@yih-wang here's a screen recording for you to take a look at.
Screen.Recording.2024-05-30.at.9.mp4
How Has This Been Tested?
Archive model
, a modal appears to ask for confirmation and once that is done, a toast notification appears to confirm the same.View archived models
on the Registered models table header kebab and view archived models table.Actions
header action, click onArchive model
to see the modal and archive it.Restore model
, a modal appears to confirm restoration and a toast notification appears.Restore
on the header, this will lead to a modal confirmation as in Step 4.Test Impact
Added cypress and unit tests, updated mocks
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main