summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-01-20 09:50:56 +0100
committerMartin Kosek <mkosek@redhat.com>2014-01-20 09:50:56 +0100
commit1f6322f1099babe4d25c7a9e6e6a43ce4eab766c (patch)
tree23c76980092d302e574cda8e496ba2a4c4b5cb3f
parentda5545d781b49f0991abfa3535ee0094eddbe337 (diff)
downloadfreeipa.git-1f6322f1099babe4d25c7a9e6e6a43ce4eab766c.tar.gz
freeipa.git-1f6322f1099babe4d25c7a9e6e6a43ce4eab766c.tar.xz
freeipa.git-1f6322f1099babe4d25c7a9e6e6a43ce4eab766c.zip
Remove SID resolve call from Web UI
- it's called in group-show https://bugzilla.redhat.com/show_bug.cgi?id=1054391 https://fedorahosted.org/freeipa/ticket/4123
-rw-r--r--install/ui/src/freeipa/association.js47
-rw-r--r--install/ui/src/freeipa/group.js1
2 files changed, 0 insertions, 48 deletions
diff --git a/install/ui/src/freeipa/association.js b/install/ui/src/freeipa/association.js
index ad427d66..8d81e495 100644
--- a/install/ui/src/freeipa/association.js
+++ b/install/ui/src/freeipa/association.js
@@ -1455,53 +1455,6 @@ exp.attribute_facet = IPA.attribute_facet = function(spec, no_init) {
return that;
};
-IPA.sid_facet = function(spec, no_init) {
-
- spec.name = spec.name || 'sid_facet';
-
- var that = IPA.attribute_facet(spec, no_init);
-
- that.load_records = function(value) {
- var xlate = {};
- var sidxlate_command = IPA.command({
- entity: 'trust',
- method: 'resolve',
- options: {
- sids: ''
- }
- });
- sidxlate_command.on_success = function(data, text_status, xhr) {
- for (var i=0; i< data.result.result.length; i++) {
- var entry = data.result.result[i];
- if (entry.sid[0] in xlate) {
- xlate[entry.sid[0]].resolve(entry.name[0]);
- }
- }
- };
- that.table.empty();
-
- if (value.length === 0) return;
-
- var sids = [];
- for (var i=0; i< value.length; i++) {
- var sid = value[i][that.attribute];
- var deferred = new Deferred();
- value[i][that.attribute] = {
- promise: deferred.promise,
- temp: sid
- };
- xlate[sid] = deferred;
- sids.push(sid);
- that.add_record(value[i]);
- }
- sidxlate_command.options.sids = sids;
- sidxlate_command.execute();
- };
-
- return that;
-};
-
-
IPA.attr_read_only_evaluator = function(spec) {
spec.name = spec.name || 'attr_read_only_evaluator';
diff --git a/install/ui/src/freeipa/group.js b/install/ui/src/freeipa/group.js
index 5e8cdf99..bb12d902 100644
--- a/install/ui/src/freeipa/group.js
+++ b/install/ui/src/freeipa/group.js
@@ -112,7 +112,6 @@ return {
},
{
$type: 'attribute',
- $factory: IPA.sid_facet,
name: 'member_external',
attribute: 'ipaexternalmember',
tab_label: 'External',