-
Notifications
You must be signed in to change notification settings - Fork 897
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
Tenancy for central admin #18263
Tenancy for central admin #18263
Conversation
d21cc1c
to
3f5517e
Compare
app/models/tenant.rb
Outdated
end | ||
|
||
def self.regional_tenants(tenant) | ||
where(arel_table.grouping(arel_attribute(:name).eq(tenant.name))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's make this a case insensitive match so that it's consistent with users and and groups
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done 👍
3f5517e
to
2add618
Compare
accessible_tenant_ids are tenant ids determined for selection of resources by certain tenant strategy. This update extend tenant ids about tenant ids from other regions. This tenant ids are determined by finding tenant with same name as we have in other regions and tenant is used to get tenant ids by certaion tenant strategy.
2add618
to
81f2d38
Compare
Checked commit lpichler@81f2d38 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good @lpichler 👍 Let's discuss/merge when we chat later.
@lpichler Can this be |
Tenancy for central admin (cherry picked from commit cb94114) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1695631
Hammer backport details:
|
This PR is adding a way how to use tenancy from remote region in central admin.
This change would require the user to manually create the tenant structure that exists in the remote regions in the global region.
Links
@miq-bot assign @gtanzillo
@miq-bot add_label enhancement, rbac