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

Skip re-validation when non-required fields are cleared #3705

Conversation

AparnaKarve
Copy link
Contributor

Skip re-validation if fields that are not Required are blanked out.

This will fix the below BZ where the Save button is not enabled because a blanked out non-required field enforces re-validation.

Before (Save disabled, re-validation is enforced on a blank non-required field) -

screen shot 2018-03-29 at 1 52 48 pm

After (Save enabled, re-validation is not enforced on a blank non-required field) -

screen shot 2018-03-29 at 1 51 06 pm

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

@AparnaKarve
Copy link
Contributor Author

@miq-bot add_label bug,gaprindashvili/yes

@miq-bot
Copy link
Member

miq-bot commented Mar 29, 2018

Checked commits AparnaKarve/manageiq-ui-classic@a4e8ef1~...7e57d0b with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
0 files checked, 0 offenses detected
Everything looks fine. 👍

@martinpovolny
Copy link
Member

@himdel, @ZitaNemeckova, @Hyperkid123 : can, please, one of you review this?

I don't feel confident in this area.

Thank you!

@h-kataria h-kataria self-assigned this Apr 11, 2018
@h-kataria
Copy link
Contributor

looks good, verified fix in UI.

@Hyperkid123
Copy link
Contributor

Hyperkid123 commented Apr 12, 2018

Seems ok to me.

Also i would have seriously consider using isolate scope in all directives. It should simplify the code and split controllers/components and the directive. But that is for another PR.

see #2205

@h-kataria h-kataria added this to the Sprint 84 Ending Apr 23, 2018 milestone Apr 12, 2018
@h-kataria h-kataria merged commit 94619a8 into ManageIQ:master Apr 12, 2018
@AparnaKarve AparnaKarve deleted the bz1559957_skip_reset_validation_status_if_field_not_reqd branch April 12, 2018 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants