-
Notifications
You must be signed in to change notification settings - Fork 52
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
DialogUser - update validator_type during field refresh #428
Conversation
when validator_type is set to 'regex' on load, the field will use the current validator_rule to validate, but if validator_type is changed only later in a method, the field never starts to validate. Making sure both validator_rule and validator_type are respected during field refresh. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1769960
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.
Think you can add an expectation for the validator_rule
and validator_type
in https://github.com/ManageIQ/ui-components/blob/master/src/dialog-user/components/dialog-user/dialogUser.spec.ts#L260?
cc @tinaafitz |
Updated the spec, thanks :) |
Checked commits https://github.com/himdel/ui-components/compare/172297da2e91b9643368af568c9aae965e2ce2e6~...ae83007090a25b305ae2a780164d0e2f04abbae8 with ruby 2.5.5, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0 |
DialogUser - update validator_type during field refresh (cherry picked from commit e142ea3) https://bugzilla.redhat.com/show_bug.cgi?id=1773626
Hammer backport details:
|
DialogUser - update validator_type during field refresh (cherry picked from commit e142ea3) https://bugzilla.redhat.com/show_bug.cgi?id=1773627
Ivanchuk backport details:
|
when validator_type is set to 'regex' on load, the field will use the current validator_rule to validate,
but if validator_type is changed only later in a method, the field never starts to validate.
Making sure both validator_rule and validator_type are respected during field refresh.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1769960