-
Notifications
You must be signed in to change notification settings - Fork 61
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
Add the Model Version Details and Model Version Archive pages #428
Add the Model Version Details and Model Version Archive pages #428
Conversation
...nts/ui/frontend/src/__tests__/cypress/cypress/pages/modelRegistryView/modelVersionArchive.ts
Outdated
Show resolved
Hide resolved
}); | ||
}); | ||
|
||
// TODO: Uncomment when we have restoring and archiving mocked |
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.
Am I correct that we are not able to mock this at the moment with Cypress? Both archiving a model or model version as well as restoring them didn't seem to work.
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.
mmmm this is interesting, we can track this later, cause it might be an issue with the current code.
ce9b7e7
to
fc931e8
Compare
10e58ad
to
9fe0712
Compare
Signed-off-by: Griffin-Sullivan <[email protected]>
9fe0712
to
a1e62f4
Compare
@@ -77,7 +77,7 @@ const RegisteredModelsArchiveListView: React.FC<RegisteredModelsArchiveListViewP | |||
icon={<FilterIcon />} | |||
/> | |||
</ToolbarFilter> | |||
<ToolbarItem variant="label"> |
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.
As a note for anyone wondering why I removed these label variants, they were a port from the PF6 SPIKE PR we have been following which is untested. Turns out if you use the label variant on the ToolbarItem it will add the aria-hidden='true'
property. This goes against a11y because we have a search input as a child which is focusable. Removing the label variant removes the aria-hidden
prop.
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.
Ah yes, that's a great point, I'm sorry cause I faced a similar issue and I didn't report it back, dind't ring a bell yesterday when we discussed it.
@@ -33,11 +34,20 @@ const RegisteredModelTableRow: React.FC<RegisteredModelTableRowProps> = ({ | |||
const [isRestoreModalOpen, setIsRestoreModalOpen] = React.useState(false); | |||
const rmUrl = registeredModelUrl(rm.id, preferredModelRegistry?.name); | |||
|
|||
const actions = [ | |||
const actions: IAction[] = [ |
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.
This change is porting over some code that was added after the last PR
onCancel={() => setIsArchiveModalOpen(false)} | ||
onSubmit={() => | ||
apiState.api | ||
.patchModelVersion( |
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.
There's an issue with this that I'm fixing in my PR, we can leave it as it is right now, all bff requests should have the format { data: T }
@@ -11,11 +11,13 @@ import ModelPropertiesTableRow from '~/app/pages/modelRegistry/screens/ModelProp | |||
|
|||
type ModelPropertiesDescriptionListGroupProps = { | |||
customProperties: ModelRegistryCustomProperties; | |||
isArchive?: boolean; |
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.
Great addition, now we are synced.
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
There's a bug in the code, but it's happening in the ported code too, I'll comment it in my pr so we can discuss the fix next week.
@lucferbux: changing LGTM is restricted to collaborators In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ederign, lucferbux 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 |
/lgtm |
Description
This adds the Model Version Details page, Model Version Archive page, and Registered Model archive page. I've also got some tests for each.
How Has This Been Tested?
Cypress mock testing. See added tests.
Merge criteria:
DCO
check)If you have UI changes