-
Notifications
You must be signed in to change notification settings - Fork 167
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 character length limit to both model name and version name #3377
Conversation
@yih-wang could you please take a look at the above screenshots? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3377 +/- ##
==========================================
+ Coverage 85.01% 85.91% +0.90%
==========================================
Files 1327 1339 +12
Lines 29770 30296 +526
Branches 8149 8365 +216
==========================================
+ Hits 25308 26029 +721
+ Misses 4462 4267 -195
... and 167 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@ppadti thanks for the updates!
I personally prefer not to display the char limit as help text here (for both model name and version name), but only show the error message when user exceeds the limitation. |
@yih-wang I see two help texts in the |
@manaswinidas the two help text in project creation are both conditions to be validated. So they both have that 'dynamic validation status' at the very beginning to show whether the condition is satisfied. However, in our case, I chat with @angesDing and @simrandhaliw offline and they both agree that the char limit is not essential to display as help text in our case. We are likely to make improvements to the guidelines to make sure it's clear that the help text for char limit is optional. So, @ppadti for both model name and version name, let's remove the char limit as the help text, and only have it as error message when the user input exceeds the char limit. Basically just copy what we have for MR labels. For version name, there could be both help text and error message (see the image below). I'm not sure which one would be on top by default, but I'm fine with both ways. We should just follow PF's default and avoid any customization. |
@yih-wang just wanted a small clarification, here in label we show |
oh, in Register version form with icon it looks odd, so I will go ahead with the error text without error icon as you mentioned above @yih-wang sorry for the confusion here...Thanks!! |
@ppadti Seems the new guidelines don't include the error icon in the error messages. So I think the error icon we have for label error will also be removed when we apply the new rules across the console. |
2ffaff3
to
f58ff68
Compare
@yih-wang I have updated the screenshots, take a look them when you have time. |
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.
small nit, otherwise lgtm
frontend/src/pages/modelRegistry/screens/RegisterModel/RegistrationCommonFormSections.tsx
Outdated
Show resolved
Hide resolved
frontend/src/pages/modelRegistry/screens/RegisterModel/RegisterModel.tsx
Outdated
Show resolved
Hide resolved
f58ff68
to
b7d8656
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.
Just one nitpick, otherwise looks good. If you disagree with this let me know, we could leave it as-is.
frontend/src/pages/modelRegistry/screens/RegisterModel/RegisterVersion.tsx
Outdated
Show resolved
Hide resolved
LGTM, thanks for the updates, @ppadti ! |
b7d8656
to
d17b4da
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, thanks @ppadti !
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gitdallas, mturley 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 |
Closes: RHOAIENG-12844
Description
This PR aims to add character length limit to both model name and version name in Register model and Register version forms. Also to use the given model name for the RegisteredModel and the given version name for both the ModelVersion and the ModelArtifact.
How Has This Been Tested?
Ref: Doc
Test Impact
Added cypress tests.
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main