-
Notifications
You must be signed in to change notification settings - Fork 178
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
Check serving runtime kind at creation time #1936
Check serving runtime kind at creation time #1936
Conversation
d4707c6
to
257d360
Compare
@DaoDaoNoCode I would separate the errors into two messages, and only display the appropriate message(s) when the condition is true. But @kaedward should chime in on the that. I have a question about the interaction. When is the error displayed - as soon as the user edits the field(s) or when they click Update? |
@vconzola The error happens only when users click the update button. We don't validate anything when they type. |
frontend/src/pages/modelServing/customServingRuntimes/CustomServingRuntimeAddTemplate.tsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/modelServing/customServingRuntimes/CustomServingRuntimeAddTemplate.tsx
Outdated
Show resolved
Hide resolved
@DaoDaoNoCode Given that the error isn't recognized until the user selects Update, can we break the error into three distinct messages depending on what's wrong? For example,
@kaedward What do you think? |
@vconzola I like that approach, it sets a standard for these single errors so that we don't have to write new unique messages for each combination of them. I made a few edits, since I don't necessarily think these kinds of errors need to be written in full sentences. I think we could also remove the titles since the error messages are so concise... would make it easier to scan if the user happens to have a lot of errors. Title = "Invalid parameter", Text = "kind: must be ServingRuntime." If we can't do that... Is the "Error" alert header necessary? I would prefer not to have a header here if we can help it, since it's basically helper/validation text. Here's a suggestion for the body:
|
@DaoDaoNoCode I think the idea is that we should have separate messages for each error, using the text @kaedward proposed.
Katie - Correct me if I misunderstood. |
@vconzola It's a little bit hard to customize the title actually, do you have any suggestions on the general title we should use? The body message can be fully customized of course. |
I'm not sure I understand what you mean by general title - is it not possible to have 3 separate error messages like @vconzola suggested above? |
@kaedward It's definitely doable, let me try to hack this tomorrow. Thanks for the feedback. |
257d360
to
8d8cacb
Compare
@DaoDaoNoCode Perfect! |
c72652b
to
45b46c6
Compare
45b46c6
to
2078e9f
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
Ok, validation works great, it seems to be checking the main 4 issues and the code looks great
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
d1228e0
into
opendatahub-io:f/model-serving
Closes #1353
Description
How Has This Been Tested?
ServingRuntim
or any value that's notServingRuntime
container
orsupportedModelFormats
field in the specTemplate
in the dashboard namespace), change thekind
in theobjects
fromServingRuntime
to an invalid value in that template resourceAdd model server
, and make sure you cannot see the template in the template selection dropdown menuTest Impact
Add an invalid mock data for the template, and make sure it won't show in the template selection dropdown when creating a model server
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main