@@ -4325,7 +4325,9 @@ message:"This pod has been deleted."
4325
4325
} ) ;
4326
4326
} ;
4327
4327
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 ) {
4329
4331
A ( b ) ;
4330
4332
var d = { } ;
4331
4333
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",
5010
5012
details :"The active filters are hiding all builds."
5011
5013
} ;
5012
5014
}
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 ) {
5014
5018
r ( a ) , o . push ( g . watchObject ( "buildconfigs" , c . buildconfig , f , r ) ) ;
5015
5019
} , function ( c ) {
5016
5020
a . loaded = ! 0 , a . alerts . load = {
@@ -5098,7 +5102,9 @@ message:"Build configuration " + a.buildConfigName + " has been deleted."
5098
5102
} , a . buildConfigDeleted = ! 0 ) , a . buildConfig = b , a . buildConfigPaused = d . isPaused ( a . buildConfig ) , k ( ) ;
5099
5103
} ;
5100
5104
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 ) {
5102
5108
l ( a ) , i . push ( e . watchObject ( "builds" , c . build , g , l ) ) , i . push ( e . watchObject ( "buildconfigs" , c . buildconfig , g , n ) ) ;
5103
5109
} , m ) , a . toggleSecret = function ( ) {
5104
5110
a . showSecret = ! 0 ;
@@ -5149,7 +5155,9 @@ message:"This image stream has been deleted."
5149
5155
} ) ;
5150
5156
} ;
5151
5157
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 ) {
5153
5161
k ( a , f ) , i . push ( c . watchObject ( "imagestreams" , b . imagestream , f , function ( a , b ) {
5154
5162
k ( a , f , b ) ;
5155
5163
} ) ) ;
@@ -5205,7 +5213,9 @@ title:b.imagestream
5205
5213
} ] , a . emptyMessage = "Loading..." ;
5206
5214
var h = [ ] ;
5207
5215
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 ) {
5209
5219
a . loaded = ! 0 , a . imageStream = d , a . emptyMessage = "No tags to show" , h . push ( c . watchObject ( "imagestreams" , b . imagestream , g , function ( b , c ) {
5210
5220
"DELETED" === c && ( a . alerts . deleted = {
5211
5221
type :"warning" ,
@@ -5319,7 +5329,9 @@ a.hpaWarnings = b;
5319
5329
d . get ( {
5320
5330
group :"extensions" ,
5321
5331
resource :"deployments"
5322
- } , c . deployment , m ) . then ( function ( g ) {
5332
+ } , c . deployment , m , {
5333
+ errorNotification :! 1
5334
+ } ) . then ( function ( g ) {
5323
5335
a . loaded = ! 0 , a . deployment = g , x ( ) , a . saveEnvVars = function ( ) {
5324
5336
f . compact ( a . updatedDeployment ) , v = d . update ( {
5325
5337
group :"extensions" ,
@@ -5468,7 +5480,9 @@ h.getHPAWarnings(a.deploymentConfig, a.autoscalers, D, d).then(function(b) {
5468
5480
a . hpaWarnings = b ;
5469
5481
} ) ;
5470
5482
} ;
5471
- e . get ( "deploymentconfigs" , c . deploymentconfig , k ) . then ( function ( d ) {
5483
+ e . get ( "deploymentconfigs" , c . deploymentconfig , k , {
5484
+ errorNotification :! 1
5485
+ } ) . then ( function ( d ) {
5472
5486
a . loaded = ! 0 , a . deploymentConfig = d , a . strategyParams = b ( "deploymentStrategyParams" ) ( d ) , E ( ) , a . updatedDeploymentConfig = g . copyAndNormalize ( a . deploymentConfig ) , a . saveEnvVars = function ( ) {
5473
5487
l . hideNotification ( "save-dc-env-error" ) , g . compact ( a . updatedDeploymentConfig ) , C = e . update ( "deploymentconfigs" , c . deploymentconfig , a . updatedDeploymentConfig , k ) , C . then ( function ( ) {
5474
5488
l . addNotification ( {
@@ -5762,7 +5776,9 @@ var b = _.get(a, "replicaSet.spec.template");
5762
5776
b && j . fetchReferencedImageStreamImages ( [ b ] , a . imagesByDockerReference , w , l ) ;
5763
5777
}
5764
5778
} ;
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 ) {
5766
5782
switch ( a . loaded = ! 0 , a . replicaSet = b , A ( b ) , s ) {
5767
5783
case "ReplicationController" :
5768
5784
K ( b ) ;
@@ -5914,38 +5930,46 @@ version:"v1beta1"
5914
5930
} ;
5915
5931
g . isAvailable ( ) . then ( function ( a ) {
5916
5932
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 ) {
5919
5937
angular . extend ( b , {
5920
- statefulSet :k ( d ) ,
5921
- project :a ,
5922
- projectContext :c ,
5938
+ statefulSet :k ( a ) ,
5939
+ project :c ,
5940
+ projectContext :d ,
5923
5941
loaded :! 0 ,
5924
5942
isScalable :function ( ) {
5925
5943
return ! 1 ;
5926
5944
} ,
5927
5945
scale :function ( ) { }
5928
- } ) , l . push ( e . watchObject ( m , b . statefulSetName , c , function ( a ) {
5946
+ } ) , l . push ( e . watchObject ( m , b . statefulSetName , d , function ( a ) {
5929
5947
angular . extend ( b , {
5930
5948
resourceGroupVersion :m ,
5931
5949
statefulSet :k ( a )
5932
5950
} ) ;
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 ) ;
5936
5954
} ) ) ;
5937
5955
var f = 6e4 ;
5938
- l . push ( e . watch ( "resourcequotas" , c , function ( a ) {
5956
+ l . push ( e . watch ( "resourcequotas" , d , function ( a ) {
5939
5957
b . quotas = a . by ( "metadata.name" ) ;
5940
5958
} , {
5941
5959
poll :! 0 ,
5942
5960
pollInterval :f
5943
- } ) ) , l . push ( e . watch ( "appliedclusterresourcequotas" , c , function ( a ) {
5961
+ } ) ) , l . push ( e . watch ( "appliedclusterresourcequotas" , d , function ( a ) {
5944
5962
b . clusterQuotas = a . by ( "metadata.name" ) ;
5945
5963
} , {
5946
5964
poll :! 0 ,
5947
5965
pollInterval :f
5948
5966
} ) ) ;
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
+ } ;
5949
5973
} ) ;
5950
5974
} ) ) , b . $on ( "$destroy" , function ( ) {
5951
5975
e . unwatchAll ( l ) ;
@@ -5998,7 +6022,9 @@ message:"This service has been deleted."
5998
6022
} ) ;
5999
6023
} ;
6000
6024
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 ) {
6002
6028
j ( a ) , g . push ( c . watchObject ( "services" , b . service , k , j ) ) ;
6003
6029
} , function ( b ) {
6004
6030
a . loaded = ! 0 , a . alerts . load = {
@@ -6197,7 +6223,9 @@ return !d.isAlertPermanentlyHidden(e, a.projectName);
6197
6223
var c = k ( b ) ;
6198
6224
d . permanentlyHideAlert ( c , a . projectName ) ;
6199
6225
} , 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 ) {
6201
6229
j ( a ) , i . push ( e . watchObject ( "routes" , c . route , f , j ) ) ;
6202
6230
} , function ( c ) {
6203
6231
a . loaded = ! 0 , a . alerts . load = {
@@ -6368,7 +6396,9 @@ message:"This persistent volume claim has been deleted."
6368
6396
} ) ;
6369
6397
} ;
6370
6398
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 ) {
6372
6402
g ( a ) , f . push ( c . watchObject ( "persistentvolumeclaims" , b . pvc , h , g ) ) ;
6373
6403
} , function ( b ) {
6374
6404
a . loaded = ! 0 , a . alerts . load = {
@@ -6577,7 +6607,9 @@ var t = function() {
6577
6607
j . hideNotification ( "edit-build-config-error" ) , j . hideNotification ( "edit-build-config-conflict" ) , j . hideNotification ( "edit-build-config-deleted" ) ;
6578
6608
} ;
6579
6609
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 ) {
6581
6613
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 ) {
6582
6614
var c = m . groupSecretsByType ( b ) , d = _ . mapValues ( c , function ( a ) {
6583
6615
return _ . map ( a , "metadata.name" ) ;
@@ -6842,7 +6874,9 @@ h.hideNotification("edit-config-map-error");
6842
6874
d . history . back ( ) ;
6843
6875
} ;
6844
6876
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 ) {
6846
6880
c . loaded = ! 0 , c . breadcrumbs = f . getBreadcrumbs ( {
6847
6881
name :b . configMap ,
6848
6882
object :a ,
@@ -6907,7 +6941,9 @@ return void Logger.error("Unknown deployment strategy type: " + a);
6907
6941
}
6908
6942
} ;
6909
6943
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 ) {
6911
6947
a . deploymentConfig = b , a . breadcrumbs = h . getBreadcrumbs ( {
6912
6948
object :b ,
6913
6949
project :c ,
@@ -7381,7 +7417,9 @@ var h = {
7381
7417
resource :f . kindToResource ( d . kind ) ,
7382
7418
group :d . group
7383
7419
} ;
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 ) {
7385
7423
var g = angular . copy ( c ) ;
7386
7424
a . resource = g ;
7387
7425
var j = function ( a ) {
0 commit comments