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

AeResolveOptions - use ng-if instead of ng-show #3689

Merged
merged 1 commit into from
Mar 28, 2018
Merged

AeResolveOptions - use ng-if instead of ng-show #3689

merged 1 commit into from
Mar 28, 2018

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Mar 27, 2018

The partial is used only under specific circumstances,
but using ng-show means all the required fields are always required, even when not visible.

This makes it impossible to create a new schedule when using one of the types which don't show object_request.
(Because the form is not valid, but the required field is not visible.)

Changing to ng-if, which will not try to validate invisible fields.

(Introduced in #3613, cc @ZitaNemeckova)
(Fixes ☝️ March 27, 2018 8:51 AM, cc @nimrodshn)

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

The partial is used only under specific circumstances,
but using ng-show means all the required fields are always required, even when not visible.

This makes it impossible to create a new schedule when using one of the types which don't show `object_request`.
(Because the form is not valid, but the required field is not visible.)

Changing to ng-if, which will not try to validate invisible fields.
@himdel
Copy link
Contributor Author

himdel commented Mar 27, 2018

gaprindashvili/yes, since this fixes a bug in gaprindashvili/backported #3689

@miq-bot
Copy link
Member

miq-bot commented Mar 27, 2018

Checked commit https://github.com/himdel/manageiq-ui-classic/commit/62b27048267122efe1422be659764e150893ffdc 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. 👍

@nimrodshn
Copy link
Contributor

nimrodshn commented Mar 28, 2018

@himdel LGTM !!

@mzazrivec mzazrivec self-assigned this Mar 28, 2018
@mzazrivec mzazrivec added this to the Sprint 83 Ending Apr 9, 2018 milestone Mar 28, 2018
@mzazrivec mzazrivec merged commit f5101f5 into ManageIQ:master Mar 28, 2018
@ZitaNemeckova
Copy link
Contributor

simaishi pushed a commit that referenced this pull request Apr 2, 2018
AeResolveOptions - use ng-if instead of ng-show
(cherry picked from commit f5101f5)

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

simaishi commented Apr 2, 2018

Gaprindashvili backport details:

$ git log -1
commit e8c35128e2486b4420b7693236b41bce1fdd3d5c
Author: Milan Zázrivec <[email protected]>
Date:   Wed Mar 28 13:08:05 2018 +0200

    Merge pull request #3689 from himdel/fix-schedule-3613
    
    AeResolveOptions - use ng-if instead of ng-show
    (cherry picked from commit f5101f518f17c120f833c5f0b523f6578eab47d6)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1562800

@himdel himdel deleted the fix-schedule-3613 branch April 9, 2018 16:07
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