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

Add the Model Version Details and Model Version Archive pages #428

Merged
merged 1 commit into from
Sep 26, 2024

Conversation

Griffin-Sullivan
Copy link
Contributor

@Griffin-Sullivan Griffin-Sullivan commented Sep 24, 2024

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.

image
image

How Has This Been Tested?

Cypress mock testing. See added tests.

Merge criteria:

  • All the commits have been signed-off (To pass the DCO check)
  • The commits have meaningful messages; the author will squash them after approval or in case of manual merges will ask to merge with squash.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work.
  • Code changes follow the kubeflow contribution guidelines.

If you have UI changes

  • The developer has added tests or explained why testing cannot be added.
  • Included any necessary screenshots or gifs if it was a UI change.
  • Verify that UI/UX changes conform the UX guidelines for Kubeflow.

});
});

// TODO: Uncomment when we have restoring and archiving mocked
Copy link
Contributor Author

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.

Copy link
Contributor

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.

@Griffin-Sullivan Griffin-Sullivan force-pushed the detail-details branch 2 times, most recently from ce9b7e7 to fc931e8 Compare September 25, 2024 14:54
@Griffin-Sullivan Griffin-Sullivan marked this pull request as ready for review September 25, 2024 14:55
@Griffin-Sullivan Griffin-Sullivan force-pushed the detail-details branch 2 times, most recently from 10e58ad to 9fe0712 Compare September 25, 2024 17:51
@@ -77,7 +77,7 @@ const RegisteredModelsArchiveListView: React.FC<RegisteredModelsArchiveListViewP
icon={<FilterIcon />}
/>
</ToolbarFilter>
<ToolbarItem variant="label">
Copy link
Contributor Author

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.

Copy link
Contributor

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[] = [
Copy link
Contributor Author

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(
Copy link
Contributor

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;
Copy link
Contributor

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.

Copy link
Contributor

@lucferbux lucferbux left a 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.

Copy link

@lucferbux: changing LGTM is restricted to collaborators

In response to this:

/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.

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.

Copy link

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ederign
Copy link
Member

ederign commented Sep 26, 2024

/lgtm

@google-oss-prow google-oss-prow bot added the lgtm label Sep 26, 2024
@google-oss-prow google-oss-prow bot merged commit 97f5751 into kubeflow:main Sep 26, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants