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
This commit is contained in:
Petr Vobornik
2014-01-17 12:43:11 +01:00
committed by Martin Kosek
parent fcd9a66b16
commit 3264b0eaaf
2 changed files with 0 additions and 53 deletions

View File

@@ -1507,58 +1507,6 @@ exp.attribute_facet = IPA.attribute_facet = function(spec, no_init) {
return that;
};
/**
* SID facet
* @class association.sid_facet
* @alternateClassName IPA.sid_facet
* @extends association.attribute_facet
*/
exp.sid_facet = 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;
};
/**
* Attriute read-only evaluator
* @class IPA.attr_read_only_evaluator

View File

@@ -112,7 +112,6 @@ return {
},
{
$type: 'attribute',
$factory: IPA.sid_facet,
name: 'member_external',
attribute: 'ipaexternalmember',
tab_label: 'External',