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

TenantComponent - fix setting default based on ancestry #5031

Merged
merged 1 commit into from
Dec 4, 2018
Merged

TenantComponent - fix setting default based on ancestry #5031

merged 1 commit into from
Dec 4, 2018

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Dec 3, 2018

Ops > Access Control > Tenants .. click the root tenant & edit

Since ManageIQ/manageiq-api#253,
the API is not returning undefined, but null. (When no ancestry found.)

That causes the "Use Configuration Settings" checkbox to never get shown.
(It should only appear for root tenants.)

Fixing to handle both.

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

Since ManageIQ/manageiq-api#253,
the API is not returning undefined, but null.

That causes the "Use Configuration Settings" checkbox to never get shown.
(It should only appear for root tenants.)

Fixing to handle both.

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641778
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1654718
@miq-bot
Copy link
Member

miq-bot commented Dec 3, 2018

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

@mzazrivec mzazrivec self-assigned this Dec 4, 2018
@mzazrivec mzazrivec added this to the Sprint 101 Ending Dec 17, 2018 milestone Dec 4, 2018
@mzazrivec mzazrivec merged commit 189dfe3 into ManageIQ:master Dec 4, 2018
@himdel himdel deleted the tenant-use-config branch December 4, 2018 12:14
simaishi pushed a commit that referenced this pull request Dec 4, 2018
@simaishi
Copy link
Contributor

simaishi commented Dec 4, 2018

Hammer backport details:

$ git log -1
commit 9702ed9708228a0ed2929010caa8516315f350d8
Author: Milan Zázrivec <[email protected]>
Date:   Tue Dec 4 11:14:19 2018 +0100

    Merge pull request #5031 from himdel/tenant-use-config
    
    TenantComponent - fix setting default based on ancestry
    
    (cherry picked from commit 189dfe34cf3110313f4f296df1162e489e3667d5)
    
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1641778
    Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1654718

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.

4 participants