Browse code

bump(github.com/openshift/origin-web-console): 8baf00b8624ff918a4c754f01c6fba48e6bc62a0

OpenShift Bot authored on 2016/12/07 02:58:09
Showing 1 changed files
... ...
@@ -4029,22 +4029,11 @@ getSubjectKinds:d,
4029 4029
 mapRolebindingsForUI:e
4030 4030
 };
4031 4031
 } ]), angular.module("openshiftConsole").factory("RolesService", [ "$q", "DataService", function(a, b) {
4032
-var c = function(a, c) {
4033
-b.list("clusterroles", {}, a, c);
4034
-}, d = function(a, c, d) {
4035
-b.list("roles", a, c, d);
4036
-}, e = function(b) {
4037
-var e = a.defer(), f = [], g = function(a) {
4038
-f.push(a.by("metadata.name")), _.isEqual(f.length, 2) && e.resolve(f);
4039
-};
4040
-return d(b, function(a) {
4041
-g(a);
4042
-}), c(function(a) {
4043
-g(a);
4044
-}), e.promise;
4032
+var c = function(c) {
4033
+return a.all([ b.list("roles", c, null), b.list("clusterroles", {}, null) ]);
4045 4034
 };
4046 4035
 return {
4047
-listAllRoles:e
4036
+listAllRoles:c
4048 4037
 };
4049 4038
 } ]), angular.module("openshiftConsole").factory("RoleBindingsService", [ "$q", "DataService", function(a, b) {
4050 4039
 var c = {}, d = function(a, b) {
... ...
@@ -6212,14 +6201,14 @@ details:e
6212 6212
 }, u = function() {
6213 6213
 d.disableAddForm = !1, d.newBinding.name = "", d.newBinding.namespace = o, d.newBinding.newRole = null;
6214 6214
 }, v = function() {
6215
-i.list("rolebindings", n, function(a) {
6215
+i.list("rolebindings", n, null, {
6216
+errorNotification:!1
6217
+}).then(function(a) {
6216 6218
 angular.extend(d, {
6217 6219
 canShowRoles:!0,
6218 6220
 roleBindings:a.by("metadata.name"),
6219 6221
 subjectKindsForUI:k.mapRolebindingsForUI(a.by("metadata.name"), r)
6220 6222
 }), u();
6221
-}, {
6222
-errorNotification:!1
6223 6223
 });
6224 6224
 }, w = function(b, c) {
6225 6225
 d.disableAddForm = !0, l.create(b, c, o, n).then(function() {
... ...
@@ -6312,7 +6301,7 @@ roleName:c
6312 6312
 };
6313 6313
 g.withUser().then(function(a) {
6314 6314
 d.user = a;
6315
-}), i.list("projects", {}, function(a) {
6315
+}), i.list("projects", {}).then(function(a) {
6316 6316
 var b = _.map(a.by("metadata.name"), function(a) {
6317 6317
 return a.metadata.name;
6318 6318
 });
... ...
@@ -6373,7 +6362,7 @@ subjectName:a
6373 6373
 }), m.listAllRoles(n, {
6374 6374
 errorNotification:!1
6375 6375
 }).then(function(a) {
6376
-r = k.mapRolesForUI(_.first(a), _.last(a));
6376
+r = k.mapRolesForUI(_.first(a).by("metadata.name"), _.last(a).by("metadata.name"));
6377 6377
 var b = k.sortRoles(r), c = k.filterRoles(r), e = function(a, b) {
6378 6378
 return _.some(b, {
6379 6379
 metadata:{