-
Notifications
You must be signed in to change notification settings - Fork 14
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
#2134 - Increase the max length of operating and legal operating name to 250 #2140
#2134 - Increase the max length of operating and legal operating name to 250 #2140
Conversation
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, nice work @dheepak-aot
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.
Nice work, looks good 👍
@@ -395,7 +396,7 @@ | |||
"validate": { | |||
"required": true, | |||
"minLength": "", | |||
"maxLength": 100, | |||
"maxLength": 250, |
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.
Nice catch updating this form also.
Can we have an AC added to the ticket to make it clear that the update process by the Ministry is also a scenario to be tested by the business?
@JasonCTang FYI
@@ -346,7 +346,8 @@ | |||
"addons": [], | |||
"inputType": "text", | |||
"id": "eiloy9e", | |||
"defaultValue": "" | |||
"defaultValue": "", | |||
"isNew": false |
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 wondering, are we not adding the max length to legalOperatingName. same for the other form
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.
We consider that @ann-aot but the legalOperatingName
is displayed here for info only. The value is retrieved from the token directly, not from the UI, so there is no real point in adding a validation here since we have the confirmation about the 250 characters.
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.
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.
@andrewsignori-aot , I just thought twice, we are re-using the same form(institution profile) to create institution by ministry right. should we use the validation then?
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.
mm, ya... but I was wondering, what if they increased the length (and we have 250), and now there is a new institution with more than 250 characters of legal name, then the same error which we saw today will happen again right? but if we add the max length here, at least the user will not be able to submit due to validation and the user will at least know the issue right?
but, I am good with what we have in the PR, just sharing my thoughts
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.
Yes, that makes sense @dheepak-aot, nice catch.
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 👍 Thank You for the quick fix.
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.
NIce work @dheepak-aot and nice catch
Kudos, SonarCloud Quality Gate passed!
|
Increase the max length in formio and db for operating name and legal operating name
Institution Creation exceeding 250 characters
Institution Creation within 250 characters