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

Changed if condition to rely on back-end method. #1351

Merged
merged 1 commit into from May 15, 2017

Conversation

h-kataria
Copy link
Contributor

@h-kataria h-kataria commented May 15, 2017

Changed check to call back-end method "MiqRegion#role_active?" to decide whether button should be enabled/disabled

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

@carbonin changed code to call back-end method, will replace this call with new method when that's ready

@carbonin
Copy link
Member

So I just found out that this exists.

That should handle this use case. I'll open a separate PR to change the existing provider code to use this method as well but that won't block you.

@carbonin
Copy link
Member

Made ManageIQ/manageiq#15094 to change the Provider logic on the backend.

@h-kataria h-kataria force-pushed the ansible_role_enabled_check_fix branch from 54c1cf1 to 1ff6dd7 Compare May 15, 2017 18:53
Changed check to call back-end method "MiqRegion#role_active?" to decide whether button should be enabled/disabled

https://bugzilla.redhat.com/show_bug.cgi?id=1450290
@h-kataria h-kataria force-pushed the ansible_role_enabled_check_fix branch from 1ff6dd7 to c4bd99d Compare May 15, 2017 18:55
@h-kataria h-kataria removed the wip label May 15, 2017
@h-kataria h-kataria changed the title [WIP] - Changed if condition to rely on back-end method. Changed if condition to rely on back-end method. May 15, 2017
@h-kataria
Copy link
Contributor Author

@carbonin updated PR
cc @jameswnl

@miq-bot
Copy link
Member

miq-bot commented May 15, 2017

Checked commit h-kataria@c4bd99d with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0
2 files checked, 0 offenses detected
Everything looks fine. 🍪

@dclarizio dclarizio merged commit ce30797 into ManageIQ:master May 15, 2017
@dclarizio dclarizio added this to the Sprint 61 Ending May 22, 2017 milestone May 15, 2017
simaishi pushed a commit that referenced this pull request May 15, 2017
@simaishi
Copy link
Contributor

Fine backport details:

$ git log -1
commit ede818f3b0405a0fca1fbdbb9592d77c49702328
Author: Dan Clarizio <dclarizi@redhat.com>
Date:   Mon May 15 13:25:43 2017 -0700

    Merge pull request #1351 from h-kataria/ansible_role_enabled_check_fix
    
    Changed if condition to rely on back-end method.
    (cherry picked from commit ce307978c326e62239ec8ac083978512a0ccf164)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1451121

@h-kataria h-kataria deleted the ansible_role_enabled_check_fix branch May 18, 2017 17:30
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