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

Update 'Resource name' fields to meet UX guidelines: Model registries and Inference services #3464

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jeff-phillips-18
Copy link
Contributor

@jeff-phillips-18 jeff-phillips-18 commented Nov 12, 2024

Towards RHOAIENG-14746

Description

Updates create/edit modals to use K8sNameDescriptionField component in order to meet current UX guidelines.
Modals updated:

  • Model Registries
  • Project Serving (these share the same name)
    • Serving Runtimes (project “model servers”)
    • Inference Services (project models)

Screen shots

Deploy model

image

Edit model

image

Model registry - Deploy model

image

How Has This Been Tested?

  • Navigate to the Model Serving section

    • Select a project
    • Select Deploy model
    • Enter the model deployment name
    • View the resource name via the Edit resource name link.
    • Change the resource name to something invalid (ie. contains a space)
    • Verify the submit button is disabled
    • Change the resource name to something valid
    • Verify the submit button is enabled
    • Save the deployment.
    • Verify the deployment is created with the correct Display name and Resource Name.
  • Navigate to the Model Serving section

    • For an existing Model, select the kebab and choose Edit
    • Update the Name field
    • Notice the resource name is not editable
    • Save the model server.
    • Verify the model is updated with the correct Display name.
  • Navigate to the Model Registry section

    • Select an existing model
    • For a version, select the kebab and then Deploy
    • Select a project
    • Verify the model deployment name is set
    • Enter data for the rest of the form such that Deploy is enabled
    • View the resource name via the Edit resource name link.
    • Change the resource name to something invalid (ie. contains a space)
    • Verify the Deploy button is disabled
    • Change the resource name to something valid
    • Verify the Deploy button is enabled
    • Save the deployment.
    • Navigate to the Model Serving section
    • Find the new model created, select the kebab and choose Edit
    • Verify the deployment was created with the correct Display name and Resource Name.
  • Navigate to a project that is not configured for kserve or model mesh

    • Select Select single-model from the Single-model serving platform card
    • Select Deploy model
    • Enter the model deployment name
    • Enter data for the rest of the form such that Deploy is enabled
    • View the resource name via the Edit resource name link.
    • Change the resource name to something invalid (ie. contains a space)
    • Verify the Deploy button is disabled
    • Change the resource name to something valid
    • Verify the Deploy button is enabled
    • Save the deployment.
    • Navigate to the Model Serving section
    • Find the new model created, select the kebab and choose Edit
    • Verify the deployment was created with the correct Display name and Resource Name.
  • Navigate to a project this model servers and select the Models tab

    • Select Add model server
    • Enter the name for the new model server.
    • View the resource name via the Edit resource name link.
    • Change the resource name to something invalid (ie. contains a space)
    • Verify the submit button is disabled
    • Change the resource name to something valid
    • Verify the submit button is enabled
    • Save the profile.
    • Verify the profile is created with the correct Display name and Resource Name.
  • Navigate to a project this model servers and select the Models tab

    • Select the kebab for an existing model server and choose Edit
    • Update the Name field
    • Notice the resource name is not editable
    • Save the model server.
    • Verify the model server is added with the correct Display name and resource name

Test Impact

Updated unit tests for new fields

Request review criteria:

  • The developer has manually tested the changes and verified that the changes work
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)
  • Included any necessary screenshots or gifs if it was a UI change.
  • Included tags to the UX team if it was a UI/UX change.

/cc @simrandhaliw

Copy link
Contributor

openshift-ci bot commented Nov 12, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign manosnoam for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@jeff-phillips-18 jeff-phillips-18 force-pushed the inference-service-resource-name branch 2 times, most recently from d52e81c to cfbb904 Compare November 12, 2024 15:49
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

Attention: Patch coverage is 93.24324% with 5 lines in your changes missing coverage. Please review.

Project coverage is 85.23%. Comparing base (3ba248d) to head (b88cc2c).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...screens/projects/kServeModal/ManageKServeModal.tsx 93.02% 3 Missing ⚠️
...erenceServiceModal/ManageInferenceServiceModal.tsx 92.30% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3464      +/-   ##
==========================================
- Coverage   85.24%   85.23%   -0.02%     
==========================================
  Files        1355     1354       -1     
  Lines       31074    31066       -8     
  Branches     8663     8662       -1     
==========================================
- Hits        26489    26478      -11     
- Misses       4585     4588       +3     
Files with missing lines Coverage Δ
...8sNameDescriptionField/K8sNameDescriptionField.tsx 100.00% <100.00%> (ø)
...erenceServiceModal/ManageInferenceServiceModal.tsx 93.75% <92.30%> (-0.08%) ⬇️
...screens/projects/kServeModal/ManageKServeModal.tsx 94.03% <93.02%> (+0.03%) ⬆️

... and 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update aa74ed9...b88cc2c. Read the comment docs.

---- 🚨 Try these New Features:

@emilys314
Copy link
Contributor

I tested out the PR image and everything seems to work good for single and multi model serving. I didn't check model registry changes though

@jeff-phillips-18 jeff-phillips-18 changed the title [WIP] Update 'Resource name' fields to meet UX guidelines: Model registries and Inference services Update 'Resource name' fields to meet UX guidelines: Model registries and Inference services Nov 21, 2024
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress This PR is in WIP state label Nov 21, 2024
@jenny-s51 jenny-s51 self-requested a review November 21, 2024 15:43
@christianvogt
Copy link
Contributor

@jeff-phillips-18 the resource name isn't being used when deploying a model. It is always setting the resource name to the translated display name.

);

return sectionless ? contents : <FormSection style={{ margin: 0 }}>{contents}</FormSection>;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it makes sense to drop the section entirely and let the parent manage section considering we previously already removed the margin from the section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants