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 views for Model Versions and Model Details #409

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

Griffin-Sullivan
Copy link
Contributor

Description

Adding all Screens, Components, and Cypress tests for Model details and versions table. I've also added a Jest unit test for some helpers that were added in a previous PR. Also note a small addition to our tsconfig to get around an issue I saw in VS Code.

Screenshot from 2024-09-20 11-05-04
Screenshot from 2024-09-20 11-05-17
Screenshot from 2024-09-20 11-08-28

How Has This Been Tested?

Manually testing the UI in mock mode
Jest and Cypress 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.

});

it('Model versions table', () => {
// TODO: Uncomment when we fix finding dropdown items
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this test was edited slightly to avoid any dropdown checks

<Route
path={ModelVersionsTab.DETAILS}
element={<ModelVersions tab={ModelVersionsTab.DETAILS} empty={false} />}
/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just to disclose the private conversation, there will be a follow up to add the archive view here.

isEditing = isAddRow,
keyValuePair = { key: '', value: '' },
deleteProperty = () => Promise.resolve(),
allExistingKeys,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take a look at the latest version, it seems they've added a new prop to detect if the model is archived: opendatahub-io/odh-dashboard#3206

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is addressed already in the PR that will follow this one

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

I've left a couple of nits but some of them should be addressed in the follow up PR, current one is working as expected.

Copy link

@lucferbux: changing LGTM is restricted to collaborators

In response to this:

/lgtm

I've left a couple of nits but some of them should be addressed in the follow up PR, current one is working as expected.

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
Contributor

@alexcreasy alexcreasy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and features all work great!!

Thanks Griffin

/lgtm

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: alexcreasy, 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

@google-oss-prow google-oss-prow bot merged commit e0598fd into kubeflow:main Sep 24, 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