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

Fix double ng-if #6382

Merged
merged 1 commit into from Nov 11, 2019
Merged

Fix double ng-if #6382

merged 1 commit into from Nov 11, 2019

Conversation

ZitaNemeckova
Copy link
Contributor

@ZitaNemeckova ZitaNemeckova commented Nov 6, 2019

@miq-bot add_label wip, cleanup, ivanchuk/no

Fix following error in spec log:

app/views/layouts/angular/_ansible_form_options_angular.html.haml:133:
warning: key "ng-if" is duplicated and overwritten on line 135

Places to check it works:
Services -> Catalogs -> Catalog Items -> create/edit -> Hosts show only for Ansible Playbook
Automation -> Automate -> Explorer -> create/edit a method -> Hosts show only for Ansible Playbook

Hosts pic:
image

Remove check "#{ng_model}.#{prefix}_inventory!==undefined" as it's always set for Ansible Playbook and "#{ng_model}.location==='playbook'" makes sure it's not shown for other methods/catalog items.

@miq-bot miq-bot changed the title Fix double ng-if [WIP] Fix double ng-if Nov 6, 2019
@ZitaNemeckova
Copy link
Contributor Author

Stuck on not knowing if ti should be visible for Playbook.

This change says no 98035d9

This PR says yep #5295

@h-kataria
Copy link
Contributor

Stuck on not knowing if ti should be visible for Playbook.

This change says no 98035d9

This PR says yep #5295

@tinaafitz @lfu Can one of you verify if "Hosts" field should be visible for Playbook methods? I think changes in #5295 were added to support playbook type automate methods so we should go with the field being visible. what do you think?

@lfu
Copy link
Member

lfu commented Nov 7, 2019

Hosts field is available for automate playbook method, but not for job/workflow template methods.

Remove check "#{ng_model}.#{prefix}_inventory!==undefined" as it's always set for Ansible Playbook and "#{ng_model}.location==='playbook'" makes sure it's not shown for other methods/catalog items
@miq-bot
Copy link
Member

miq-bot commented Nov 8, 2019

Checked commit ZitaNemeckova@03bbb70 with ruby 2.4.6, rubocop 0.69.0, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

@ZitaNemeckova
Copy link
Contributor Author

@miq-bot remove_label wip

@lfu Thanks :) Fixed accordingly.

@h-kataria please have a look, thanks :)

@miq-bot miq-bot changed the title [WIP] Fix double ng-if Fix double ng-if Nov 8, 2019
@miq-bot miq-bot removed the wip label Nov 8, 2019
@ZitaNemeckova
Copy link
Contributor Author

CI failure #4921 (comment)

@Fryguy Fryguy closed this Nov 8, 2019
@Fryguy Fryguy reopened this Nov 8, 2019
@h-kataria h-kataria self-assigned this Nov 11, 2019
@h-kataria h-kataria added this to the Sprint 124 Ending Nov 11, 2019 milestone Nov 11, 2019
@h-kataria h-kataria merged commit 4b8a2b5 into ManageIQ:master Nov 11, 2019
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.

None yet

5 participants