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

[EUWE] ops_rbac - group detail - don't render trees that are not visible #13399

Merged
merged 12 commits into from
Jan 11, 2017
Merged

[EUWE] ops_rbac - group detail - don't render trees that are not visible #13399

merged 12 commits into from
Jan 11, 2017

Conversation

himdel
Copy link
Contributor

@himdel himdel commented Jan 9, 2017

This is an euwe version of ManageIQ/manageiq-ui-classic#68 - lazy-load right-side trees in rbac group detail.

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

@miq-bot add_label ui, enhancement
@miq-bot assign chessbyte

since #3859 (comment), `miq_tab_header` would put ng-click (hardcoded to call `changeAuthTab`) on every tab header, even though it makes no sense for most tabs

Fixed by moving the ng-click value explicitly to options, and passing it from where `ng-click` is actually needed

Also added :onclick to options, so that custom functionality can be added in non-angular tabs too.

miq_tab_content now also takes a :lazy option, which causes the tab content to render only if the tab is currently active

(cherry picked from commit 2b1da75)
…edit

@filters were unused in TreeBuilderBelongsTo*

(cherry picked from commit db39aee)
…detail

this is used to keep track of the current tab in rbac_group detail

not using `@sb[:active_tab]` because technically, the whole rbac detail is a tab (of one), aand there's code that assumes a `#{@sb[:active_tab]}_tab` partial exists

(cherry picked from commit 62aaf8f)
..and enable the tabs to be lazy

(cherry picked from commit eb96dc7)
only loaded once, then it's kept in the browser

(so only the first time one switches to a tab, a round trip is needed)

(cherry picked from commit 90b0e86)
a long line, and a trailing _ in array assignment

(cherry picked from commit a7b219c)
This makes rbac_group_load_tab setup @edit, so that the trees can be autoloaded even in form edit.

And moved @edit=nil outside rbac_group_get_details (to the original caller), so as not to undo that :)

(cherry picked from commit 6a33db2)
…r lazy loading the tab

otherwise, ManageIQ.record.recordId gets overwritten with null, causing the toolbar to generate an url without an id

(cherry picked from commit fb3a0e7)
(cherry picked from commit a110791)
(cherry picked from commit c99485e)
technically cherry-picked from 01193c0
same change, different code
@himdel himdel changed the title [EUWE] Edit ops_rbac - group detail - don't render trees that are not visible [EUWE] ops_rbac - group detail - don't render trees that are not visible Jan 9, 2017
@chessbyte chessbyte assigned simaishi and unassigned chessbyte Jan 9, 2017
@simaishi simaishi merged commit 51c8573 into ManageIQ:euwe Jan 11, 2017
@himdel himdel deleted the euwe-rbac-group-split-trees branch January 12, 2017 14:12
@simaishi simaishi modified the milestone: Sprint 52 Ending Jan 16, 2017 Jan 13, 2017
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.

5 participants