From 34c5d996d760abeaede782253931ed7bc36320cc Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Wed, 1 Jun 2011 13:52:38 -0500 Subject: Temporary fix for indirect member tabs. Since the group-show command doesn't return indirect members, the tabs for group's indirect members have been reverted to call user-find with the --in-groups parameter to get the entries. However, this is only a temporary solution since the user-find command returns both direct and indirect members (ticket #1273). The Selenium test for groups has been modified to test nested groups and verify indirect members. The verification currently will fail due to the above issue. --- install/ui/associate.js | 67 +++++++-- install/ui/entity.js | 10 +- install/ui/search.js | 14 +- .../test/functional/group-add-nested-groups.html | 91 ++++++++++++ .../functional/group-add-nested-member-groups.html | 153 +++++++++++++++++++++ .../test/functional/group-del-nested-groups.html | 71 ++++++++++ .../group-remove-nested-member-groups.html | 133 ++++++++++++++++++ install/ui/test/functional/group-suite.html | 5 + .../group-verify-indirect-member-groups.html | 93 +++++++++++++ 9 files changed, 612 insertions(+), 25 deletions(-) create mode 100644 install/ui/test/functional/group-add-nested-groups.html create mode 100644 install/ui/test/functional/group-add-nested-member-groups.html create mode 100644 install/ui/test/functional/group-del-nested-groups.html create mode 100644 install/ui/test/functional/group-remove-nested-member-groups.html create mode 100644 install/ui/test/functional/group-verify-indirect-member-groups.html diff --git a/install/ui/associate.js b/install/ui/associate.js index eb4a5a056..f7ac1505e 100644 --- a/install/ui/associate.js +++ b/install/ui/associate.js @@ -707,7 +707,7 @@ IPA.association_facet = function (spec) { that.columns = $.ordered_map(); that.adder_columns = $.ordered_map(); - that.page_length = 20; + that.page_length = spec.page_length === undefined ? 20 : spec.page_length; that.get_column = function(name) { return that.columns.get(name); @@ -1107,21 +1107,62 @@ IPA.association_facet = function (spec) { return that; }; +IPA.indirect_association_facet = function (spec) { -IPA.deleter_dialog_setup = function () { + spec = spec || {}; - var that = this; + spec.page_length = 0; + spec.read_only = true; - var ul = $('