Skip to content

Commit 039d765

Browse files
author
OpenShift Bot
authored
Merge pull request #1721 from spadgett/chromeless-log-message
Merged by openshift-bot
2 parents 1a99033 + a178acb commit 039d765

19 files changed

+89
-44
lines changed

app/scripts/controllers/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ angular.module('openshiftConsole')
123123
$scope.projectContext = context;
124124
$scope.logOptions = {};
125125
DataService
126-
.get("builds", $routeParams.build, context)
126+
.get("builds", $routeParams.build, context, { errorNotification: false })
127127
.then(function(build) {
128128
buildResolved(build);
129129
watches.push(DataService.watchObject("builds", $routeParams.build, context, buildResolved));

app/scripts/controllers/buildConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ angular.module('openshiftConsole')
157157
$scope.project = project;
158158
requestContext = context;
159159
DataService
160-
.get("buildconfigs", $routeParams.buildconfig, context)
160+
.get("buildconfigs", $routeParams.buildconfig, context, { errorNotification: false })
161161
.then(function(buildConfig) {
162162
buildConfigResolved(buildConfig);
163163
// If we found the item successfully, watch for changes on it

app/scripts/controllers/deployment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ angular.module('openshiftConsole')
110110
DataService.get({
111111
group: 'extensions',
112112
resource: 'deployments'
113-
}, $routeParams.deployment, context).then(
113+
}, $routeParams.deployment, context, { errorNotification: false }).then(
114114
// success
115115
function(deployment) {
116116
$scope.loaded = true;

app/scripts/controllers/deploymentConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ angular.module('openshiftConsole')
119119
};
120120

121121
var saveEnvPromise;
122-
DataService.get("deploymentconfigs", $routeParams.deploymentconfig, context).then(
122+
DataService.get("deploymentconfigs", $routeParams.deploymentconfig, context, { errorNotification: false }).then(
123123
// success
124124
function(deploymentConfig) {
125125
$scope.loaded = true;

app/scripts/controllers/edit/buildConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ angular.module('openshiftConsole')
262262
return;
263263
}
264264

265-
DataService.get("buildconfigs", $routeParams.buildconfig, context).then(
265+
DataService.get("buildconfigs", $routeParams.buildconfig, context, { errorNotification: false }).then(
266266
// success
267267
function(buildConfig) {
268268
$scope.buildConfig = buildConfig;

app/scripts/controllers/edit/configMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ angular.module('openshiftConsole')
4747
.get($routeParams.project)
4848
.then(_.spread(function(project, context) {
4949
DataService
50-
.get("configmaps", $routeParams.configMap, context)
50+
.get("configmaps", $routeParams.configMap, context, { errorNotification: false })
5151
.then(function(configMap) {
5252
$scope.loaded = true;
5353
$scope.breadcrumbs = BreadcrumbsService.getBreadcrumbs({

app/scripts/controllers/edit/deploymentConfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ angular.module('openshiftConsole')
8888
return;
8989
}
9090

91-
DataService.get("deploymentconfigs", $routeParams.deploymentconfig, context).then(
91+
DataService.get("deploymentconfigs", $routeParams.deploymentconfig, context, { errorNotification: false }).then(
9292
// success
9393
function(deploymentConfig) {
9494
$scope.deploymentConfig = deploymentConfig;

app/scripts/controllers/edit/yaml.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ angular.module('openshiftConsole')
8484
return;
8585
}
8686

87-
DataService.get(resourceGroupVersion, $scope.name, context).then(
87+
DataService.get(resourceGroupVersion, $scope.name, context, { errorNotification: false }).then(
8888
function(result) {
8989
// Modify a copy of the resource.
9090
var resource = angular.copy(result);

app/scripts/controllers/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ angular.module('openshiftConsole')
9595
.then(_.spread(function(project, context) {
9696
$scope.project = project;
9797
DataService
98-
.get("imagestreams", $routeParams.imagestream, context)
98+
.get("imagestreams", $routeParams.imagestream, context, { errorNotification: false })
9999
.then(function(imageStream) {
100100
imageStreamResolved(imageStream, context);
101101
watches.push(DataService.watchObject("imagestreams", $routeParams.imagestream, context, function(imageStream, action) {

app/scripts/controllers/imagestream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ angular.module('openshiftConsole')
3232
.get($routeParams.project)
3333
.then(_.spread(function(project, context) {
3434
$scope.project = project;
35-
DataService.get("imagestreams", $routeParams.imagestream, context).then(
35+
DataService.get("imagestreams", $routeParams.imagestream, context, { errorNotification: false }).then(
3636
// success
3737
function(imageStream) {
3838
$scope.loaded = true;

app/scripts/controllers/persistentVolumeClaim.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ angular.module('openshiftConsole')
4343
$scope.project = project;
4444
$scope.projectContext = context;
4545
DataService
46-
.get("persistentvolumeclaims", $routeParams.pvc, context)
46+
.get("persistentvolumeclaims", $routeParams.pvc, context, { errorNotification: false })
4747
.then(function(pvc) {
4848
pvcResolved(pvc);
4949
watches.push(DataService.watchObject("persistentvolumeclaims", $routeParams.pvc, context, pvcResolved));

app/scripts/controllers/pod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ angular.module('openshiftConsole')
256256
// context into the log-viewer directive.
257257
$scope.projectContext = context;
258258
DataService
259-
.get("pods", $routeParams.pod, context)
259+
.get("pods", $routeParams.pod, context, { errorNotification: false })
260260
.then(function(pod) {
261261
podResolved(pod);
262262
var pods = {};

app/scripts/controllers/replicaSet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ angular.module('openshiftConsole')
389389
context);
390390
};
391391

392-
DataService.get($scope.resource, $routeParams.replicaSet, context)
392+
DataService.get($scope.resource, $routeParams.replicaSet, context, { errorNotification: false })
393393
.then(function(replicaSet) {
394394
$scope.loaded = true;
395395
$scope.replicaSet = replicaSet;

app/scripts/controllers/route.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ angular.module('openshiftConsole')
8383
$scope.project = project;
8484

8585
DataService
86-
.get("routes", $routeParams.route, context)
86+
.get("routes", $routeParams.route, context, { errorNotification: false })
8787
.then(function(route) {
8888
routeResolved(route);
8989
watches.push(DataService.watchObject("routes", $routeParams.route, context, routeResolved));

app/scripts/controllers/service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ angular.module('openshiftConsole')
9696
$scope.project = project;
9797
$scope.projectContext = context;
9898
DataService
99-
.get("services", $routeParams.service, context)
99+
.get("services", $routeParams.service, context, { errorNotification: false })
100100
.then(function(service) {
101101
serviceResolved(service);
102102
watches.push(DataService.watchObject("services", $routeParams.service, context, serviceResolved));

app/scripts/controllers/statefulSet.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ angular
4848
projectContext = context;
4949

5050
DataService
51-
.get(resourceGroupVersion, $scope.statefulSetName, context)
51+
.get(resourceGroupVersion, $scope.statefulSetName, context, { errorNotification: false })
5252
.then(function(statefulSet) {
5353

5454
angular.extend($scope, {
@@ -84,6 +84,13 @@ angular
8484
watches.push(DataService.watch('appliedclusterresourcequotas', context, function(clusterQuotaData) {
8585
$scope.clusterQuotas = clusterQuotaData.by("metadata.name");
8686
}, {poll: true, pollInterval: QUOTA_POLL_INTERVAL}));
87+
}, function(e) {
88+
$scope.loaded = true;
89+
$scope.alerts["load"] = {
90+
type: "error",
91+
message: "The stateful set details could not be loaded.",
92+
details: $filter('getErrorDetails')(e)
93+
};
8794
});
8895
}));
8996

app/views/browse/stateful-set.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ <h1>
6363
<div class="container-fluid">
6464
<div ng-if="!loaded">Loading...</div>
6565

66-
<div class="row" ng-if="loaded">
66+
<div class="row" ng-if="loaded && statefulSet">
6767
<div class="col-md-12">
6868
<uib-tabset>
6969
<uib-tab active="selectedTab.details">

dist/scripts/scripts.js

Lines changed: 64 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4325,7 +4325,9 @@ message:"This pod has been deleted."
43254325
});
43264326
};
43274327
m.get(c.project).then(_.spread(function(d, h) {
4328-
o = h, a.project = d, a.projectContext = h, g.get("pods", c.pod, h).then(function(b) {
4328+
o = h, a.project = d, a.projectContext = h, g.get("pods", c.pod, h, {
4329+
errorNotification:!1
4330+
}).then(function(b) {
43294331
A(b);
43304332
var d = {};
43314333
d[b.metadata.name] = b, a.logOptions.container = c.container || b.spec.containers[0].name, a.containerTerminals = v(), w(b), j.fetchReferencedImageStreamImages(d, a.imagesByDockerReference, a.imageStreamImageRefByDockerReference, o), n.push(g.watchObject("pods", c.pod, h, function(b, c) {
@@ -5010,7 +5012,9 @@ type:"warning",
50105012
details:"The active filters are hiding all builds."
50115013
};
50125014
}
5013-
a.project = d, l = f, g.get("buildconfigs", c.buildconfig, f).then(function(a) {
5015+
a.project = d, l = f, g.get("buildconfigs", c.buildconfig, f, {
5016+
errorNotification:!1
5017+
}).then(function(a) {
50145018
r(a), o.push(g.watchObject("buildconfigs", c.buildconfig, f, r));
50155019
}, function(c) {
50165020
a.loaded = !0, a.alerts.load = {
@@ -5098,7 +5102,9 @@ message:"Build configuration " + a.buildConfigName + " has been deleted."
50985102
}, a.buildConfigDeleted = !0), a.buildConfig = b, a.buildConfigPaused = d.isPaused(a.buildConfig), k();
50995103
};
51005104
h.get(c.project).then(_.spread(function(b, g) {
5101-
a.project = b, a.projectContext = g, a.logOptions = {}, e.get("builds", c.build, g).then(function(a) {
5105+
a.project = b, a.projectContext = g, a.logOptions = {}, e.get("builds", c.build, g, {
5106+
errorNotification:!1
5107+
}).then(function(a) {
51025108
l(a), i.push(e.watchObject("builds", c.build, g, l)), i.push(e.watchObject("buildconfigs", c.buildconfig, g, n));
51035109
}, m), a.toggleSecret = function() {
51045110
a.showSecret = !0;
@@ -5149,7 +5155,9 @@ message:"This image stream has been deleted."
51495155
});
51505156
};
51515157
d.get(b.project).then(_.spread(function(d, f) {
5152-
a.project = d, c.get("imagestreams", b.imagestream, f).then(function(a) {
5158+
a.project = d, c.get("imagestreams", b.imagestream, f, {
5159+
errorNotification:!1
5160+
}).then(function(a) {
51535161
k(a, f), i.push(c.watchObject("imagestreams", b.imagestream, f, function(a, b) {
51545162
k(a, f, b);
51555163
}));
@@ -5205,7 +5213,9 @@ title:b.imagestream
52055213
} ], a.emptyMessage = "Loading...";
52065214
var h = [];
52075215
d.get(b.project).then(_.spread(function(d, g) {
5208-
a.project = d, c.get("imagestreams", b.imagestream, g).then(function(d) {
5216+
a.project = d, c.get("imagestreams", b.imagestream, g, {
5217+
errorNotification:!1
5218+
}).then(function(d) {
52095219
a.loaded = !0, a.imageStream = d, a.emptyMessage = "No tags to show", h.push(c.watchObject("imagestreams", b.imagestream, g, function(b, c) {
52105220
"DELETED" === c && (a.alerts.deleted = {
52115221
type:"warning",
@@ -5319,7 +5329,9 @@ a.hpaWarnings = b;
53195329
d.get({
53205330
group:"extensions",
53215331
resource:"deployments"
5322-
}, c.deployment, m).then(function(g) {
5332+
}, c.deployment, m, {
5333+
errorNotification:!1
5334+
}).then(function(g) {
53235335
a.loaded = !0, a.deployment = g, x(), a.saveEnvVars = function() {
53245336
f.compact(a.updatedDeployment), v = d.update({
53255337
group:"extensions",
@@ -5468,7 +5480,9 @@ h.getHPAWarnings(a.deploymentConfig, a.autoscalers, D, d).then(function(b) {
54685480
a.hpaWarnings = b;
54695481
});
54705482
};
5471-
e.get("deploymentconfigs", c.deploymentconfig, k).then(function(d) {
5483+
e.get("deploymentconfigs", c.deploymentconfig, k, {
5484+
errorNotification:!1
5485+
}).then(function(d) {
54725486
a.loaded = !0, a.deploymentConfig = d, a.strategyParams = b("deploymentStrategyParams")(d), E(), a.updatedDeploymentConfig = g.copyAndNormalize(a.deploymentConfig), a.saveEnvVars = function() {
54735487
l.hideNotification("save-dc-env-error"), g.compact(a.updatedDeploymentConfig), C = e.update("deploymentconfigs", c.deploymentconfig, a.updatedDeploymentConfig, k), C.then(function() {
54745488
l.addNotification({
@@ -5762,7 +5776,9 @@ var b = _.get(a, "replicaSet.spec.template");
57625776
b && j.fetchReferencedImageStreamImages([ b ], a.imagesByDockerReference, w, l);
57635777
}
57645778
};
5765-
f.get(a.resource, c.replicaSet, l).then(function(b) {
5779+
f.get(a.resource, c.replicaSet, l, {
5780+
errorNotification:!1
5781+
}).then(function(b) {
57665782
switch (a.loaded = !0, a.replicaSet = b, A(b), s) {
57675783
case "ReplicationController":
57685784
K(b);
@@ -5914,38 +5930,46 @@ version:"v1beta1"
59145930
};
59155931
g.isAvailable().then(function(a) {
59165932
b.metricsAvailable = a;
5917-
}), h.get(c.project).then(_.spread(function(a, c) {
5918-
j = c, e.get(m, b.statefulSetName, c).then(function(d) {
5933+
}), h.get(c.project).then(_.spread(function(c, d) {
5934+
j = d, e.get(m, b.statefulSetName, d, {
5935+
errorNotification:!1
5936+
}).then(function(a) {
59195937
angular.extend(b, {
5920-
statefulSet:k(d),
5921-
project:a,
5922-
projectContext:c,
5938+
statefulSet:k(a),
5939+
project:c,
5940+
projectContext:d,
59235941
loaded:!0,
59245942
isScalable:function() {
59255943
return !1;
59265944
},
59275945
scale:function() {}
5928-
}), l.push(e.watchObject(m, b.statefulSetName, c, function(a) {
5946+
}), l.push(e.watchObject(m, b.statefulSetName, d, function(a) {
59295947
angular.extend(b, {
59305948
resourceGroupVersion:m,
59315949
statefulSet:k(a)
59325950
});
5933-
})), l.push(e.watch("pods", c, function(a) {
5934-
var c = a.by("metadata.name");
5935-
b.podsForStatefulSet = i.filterForOwner(c, d);
5951+
})), l.push(e.watch("pods", d, function(c) {
5952+
var d = c.by("metadata.name");
5953+
b.podsForStatefulSet = i.filterForOwner(d, a);
59365954
}));
59375955
var f = 6e4;
5938-
l.push(e.watch("resourcequotas", c, function(a) {
5956+
l.push(e.watch("resourcequotas", d, function(a) {
59395957
b.quotas = a.by("metadata.name");
59405958
}, {
59415959
poll:!0,
59425960
pollInterval:f
5943-
})), l.push(e.watch("appliedclusterresourcequotas", c, function(a) {
5961+
})), l.push(e.watch("appliedclusterresourcequotas", d, function(a) {
59445962
b.clusterQuotas = a.by("metadata.name");
59455963
}, {
59465964
poll:!0,
59475965
pollInterval:f
59485966
}));
5967+
}, function(c) {
5968+
b.loaded = !0, b.alerts.load = {
5969+
type:"error",
5970+
message:"The stateful set details could not be loaded.",
5971+
details:a("getErrorDetails")(c)
5972+
};
59495973
});
59505974
})), b.$on("$destroy", function() {
59515975
e.unwatchAll(l);
@@ -5998,7 +6022,9 @@ message:"This service has been deleted."
59986022
});
59996023
};
60006024
d.get(b.project).then(_.spread(function(d, k) {
6001-
a.project = d, a.projectContext = k, c.get("services", b.service, k).then(function(a) {
6025+
a.project = d, a.projectContext = k, c.get("services", b.service, k, {
6026+
errorNotification:!1
6027+
}).then(function(a) {
60026028
j(a), g.push(c.watchObject("services", b.service, k, j));
60036029
}, function(b) {
60046030
a.loaded = !0, a.alerts.load = {
@@ -6197,7 +6223,9 @@ return !d.isAlertPermanentlyHidden(e, a.projectName);
61976223
var c = k(b);
61986224
d.permanentlyHideAlert(c, a.projectName);
61996225
}, f.get(c.project).then(_.spread(function(d, f) {
6200-
a.project = d, e.get("routes", c.route, f).then(function(a) {
6226+
a.project = d, e.get("routes", c.route, f, {
6227+
errorNotification:!1
6228+
}).then(function(a) {
62016229
j(a), i.push(e.watchObject("routes", c.route, f, j));
62026230
}, function(c) {
62036231
a.loaded = !0, a.alerts.load = {
@@ -6368,7 +6396,9 @@ message:"This persistent volume claim has been deleted."
63686396
});
63696397
};
63706398
d.get(b.project).then(_.spread(function(d, h) {
6371-
a.project = d, a.projectContext = h, c.get("persistentvolumeclaims", b.pvc, h).then(function(a) {
6399+
a.project = d, a.projectContext = h, c.get("persistentvolumeclaims", b.pvc, h, {
6400+
errorNotification:!1
6401+
}).then(function(a) {
63726402
g(a), f.push(c.watchObject("persistentvolumeclaims", b.pvc, h, g));
63736403
}, function(b) {
63746404
a.loaded = !0, a.alerts.load = {
@@ -6577,7 +6607,9 @@ var t = function() {
65776607
j.hideNotification("edit-build-config-error"), j.hideNotification("edit-build-config-conflict"), j.hideNotification("edit-build-config-deleted");
65786608
};
65796609
a.$on("$destroy", t), k.get(d.project).then(_.spread(function(c, e) {
6580-
return a.project = c, a.context = e, a.breadcrumbs[0].title = b("displayName")(c), g.canI("buildconfigs", "update", d.project) ? void h.get("buildconfigs", d.buildconfig, e).then(function(b) {
6610+
return a.project = c, a.context = e, a.breadcrumbs[0].title = b("displayName")(c), g.canI("buildconfigs", "update", d.project) ? void h.get("buildconfigs", d.buildconfig, e, {
6611+
errorNotification:!1
6612+
}).then(function(b) {
65816613
a.buildConfig = b, o(), a.updatedBuildConfig = angular.copy(a.buildConfig), a.buildStrategy = r(a.updatedBuildConfig), a.strategyType = a.buildConfig.spec.strategy.type, a.envVars = a.buildStrategy.env || [], a.triggers = u(a.triggers, a.buildConfig.spec.triggers), a.sources = B(a.sources, a.buildConfig.spec.source), _.has(b, "spec.strategy.jenkinsPipelineStrategy.jenkinsfile") && (a.jenkinsfileOptions.type = "inline"), h.list("secrets", e).then(function(b) {
65826614
var c = m.groupSecretsByType(b), d = _.mapValues(c, function(a) {
65836615
return _.map(a, "metadata.name");
@@ -6842,7 +6874,9 @@ h.hideNotification("edit-config-map-error");
68426874
d.history.back();
68436875
};
68446876
c.cancel = m, i.get(b.project).then(_.spread(function(d, i) {
6845-
e.get("configmaps", b.configMap, i).then(function(a) {
6877+
e.get("configmaps", b.configMap, i, {
6878+
errorNotification:!1
6879+
}).then(function(a) {
68466880
c.loaded = !0, c.breadcrumbs = f.getBreadcrumbs({
68476881
name:b.configMap,
68486882
object:a,
@@ -6907,7 +6941,9 @@ return void Logger.error("Unknown deployment strategy type: " + a);
69076941
}
69086942
};
69096943
m.get(d.project).then(_.spread(function(c, e) {
6910-
return a.project = c, a.context = e, g.canI("deploymentconfigs", "update", d.project) ? void i.get("deploymentconfigs", d.deploymentconfig, e).then(function(b) {
6944+
return a.project = c, a.context = e, g.canI("deploymentconfigs", "update", d.project) ? void i.get("deploymentconfigs", d.deploymentconfig, e, {
6945+
errorNotification:!1
6946+
}).then(function(b) {
69116947
a.deploymentConfig = b, a.breadcrumbs = h.getBreadcrumbs({
69126948
object:b,
69136949
project:c,
@@ -7381,7 +7417,9 @@ var h = {
73817417
resource:f.kindToResource(d.kind),
73827418
group:d.group
73837419
};
7384-
return g.canI(h, "update", d.project) ? (i.get(h, a.name, e).then(function(c) {
7420+
return g.canI(h, "update", d.project) ? (i.get(h, a.name, e, {
7421+
errorNotification:!1
7422+
}).then(function(c) {
73857423
var g = angular.copy(c);
73867424
a.resource = g;
73877425
var j = function(a) {

dist/scripts/templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3872,7 +3872,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
38723872
"<div class=\"middle-content\" persist-tab-state>\n" +
38733873
"<div class=\"container-fluid\">\n" +
38743874
"<div ng-if=\"!loaded\">Loading...</div>\n" +
3875-
"<div class=\"row\" ng-if=\"loaded\">\n" +
3875+
"<div class=\"row\" ng-if=\"loaded && statefulSet\">\n" +
38763876
"<div class=\"col-md-12\">\n" +
38773877
"<uib-tabset>\n" +
38783878
"<uib-tab active=\"selectedTab.details\">\n" +

0 commit comments

Comments
 (0)