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

DialogUser - update validator_type during field refresh #428

Merged
merged 2 commits into from
Nov 18, 2019
Merged

DialogUser - update validator_type during field refresh #428

merged 2 commits into from
Nov 18, 2019

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Nov 15, 2019

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

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
Copy link
Member

@eclarizio eclarizio left a 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?

@gmcculloug
Copy link
Member

cc @tinaafitz

@himdel
Copy link
Contributor Author

himdel commented Nov 18, 2019

Updated the spec, thanks :)

@miq-bot
Copy link
Member

miq-bot commented Nov 18, 2019

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
0 files checked, 0 offenses detected
Everything looks fine. 🍪

@martinpovolny martinpovolny self-assigned this Nov 18, 2019
@martinpovolny martinpovolny added this to the Sprint 125 Ending Nov 25, 2019 milestone Nov 18, 2019
@martinpovolny martinpovolny merged commit e142ea3 into ManageIQ:master Nov 18, 2019
@himdel himdel deleted the bz1769960 branch November 18, 2019 15:04
simaishi pushed a commit that referenced this pull request Nov 18, 2019
DialogUser - update validator_type during field refresh

(cherry picked from commit e142ea3)

https://bugzilla.redhat.com/show_bug.cgi?id=1773626
@simaishi
Copy link

Hammer backport details:

$ git log -1
commit 072a6946f36ced3c6b8620179ca113624210464d
Author: Martin Povolny <mpovolny@redhat.com>
Date:   Mon Nov 18 16:04:23 2019 +0100

    Merge pull request #428 from himdel/bz1769960
    
    DialogUser - update validator_type during field refresh
    
    (cherry picked from commit e142ea34618eac221d4b139177b3853024a44f6b)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1773626

@simaishi
Copy link

Ivanchuk backport details:

$ git log -1
commit a88a4b0ba4179cd2ded443eb8a23043102dbeb63
Author: Martin Povolny <mpovolny@redhat.com>
Date:   Mon Nov 18 16:04:23 2019 +0100

    Merge pull request #428 from himdel/bz1769960

    DialogUser - update validator_type during field refresh

    (cherry picked from commit e142ea34618eac221d4b139177b3853024a44f6b)

    https://bugzilla.redhat.com/show_bug.cgi?id=1773627

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

Successfully merging this pull request may close these issues.

6 participants