Fix build links in notifications
Fixes https://jira.prod.coreos.systems/browse/QS-33
This commit is contained in:
parent
44d8d7dd63
commit
1d593274dc
2 changed files with 6 additions and 6 deletions
|
@ -337,7 +337,7 @@ class BuildFailureEvent(BaseBuildEvent):
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, subpage='/build?current=%s' % build_uuid)
|
}, subpage='/build/%s' % build_uuid)
|
||||||
|
|
||||||
def get_summary(self, event_data, notification_data):
|
def get_summary(self, event_data, notification_data):
|
||||||
return 'Build failure ' + _build_summary(event_data)
|
return 'Build failure ' + _build_summary(event_data)
|
||||||
|
|
|
@ -95,7 +95,7 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
|
||||||
'level': 'info',
|
'level': 'info',
|
||||||
'message': 'A build has been queued for repository {repository}',
|
'message': 'A build has been queued for repository {repository}',
|
||||||
'page': function(metadata) {
|
'page': function(metadata) {
|
||||||
return '/repository/' + metadata.repository + '/build?current=' + metadata.build_id;
|
return '/repository/' + metadata.repository + '/build/' + metadata.build_id;
|
||||||
},
|
},
|
||||||
'dismissable': true
|
'dismissable': true
|
||||||
},
|
},
|
||||||
|
@ -103,7 +103,7 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
|
||||||
'level': 'info',
|
'level': 'info',
|
||||||
'message': 'A build has been started for repository {repository}',
|
'message': 'A build has been started for repository {repository}',
|
||||||
'page': function(metadata) {
|
'page': function(metadata) {
|
||||||
return '/repository/' + metadata.repository + '/build?current=' + metadata.build_id;
|
return '/repository/' + metadata.repository + '/build/' + metadata.build_id;
|
||||||
},
|
},
|
||||||
'dismissable': true
|
'dismissable': true
|
||||||
},
|
},
|
||||||
|
@ -111,7 +111,7 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
|
||||||
'level': 'info',
|
'level': 'info',
|
||||||
'message': 'A build has succeeded for repository {repository}',
|
'message': 'A build has succeeded for repository {repository}',
|
||||||
'page': function(metadata) {
|
'page': function(metadata) {
|
||||||
return '/repository/' + metadata.repository + '/build?current=' + metadata.build_id;
|
return '/repository/' + metadata.repository + '/build/' + metadata.build_id;
|
||||||
},
|
},
|
||||||
'dismissable': true
|
'dismissable': true
|
||||||
},
|
},
|
||||||
|
@ -119,7 +119,7 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
|
||||||
'level': 'error',
|
'level': 'error',
|
||||||
'message': 'A build has failed for repository {repository}',
|
'message': 'A build has failed for repository {repository}',
|
||||||
'page': function(metadata) {
|
'page': function(metadata) {
|
||||||
return '/repository/' + metadata.repository + '/build?current=' + metadata.build_id;
|
return '/repository/' + metadata.repository + '/build/' + metadata.build_id;
|
||||||
},
|
},
|
||||||
'dismissable': true
|
'dismissable': true
|
||||||
},
|
},
|
||||||
|
@ -127,7 +127,7 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
|
||||||
'level': 'info',
|
'level': 'info',
|
||||||
'message': 'A build was cancelled for repository {repository}',
|
'message': 'A build was cancelled for repository {repository}',
|
||||||
'page': function(metadata) {
|
'page': function(metadata) {
|
||||||
return '/repository/' + metadata.repository + '/build?current=' + metadata.build_id;
|
return '/repository/' + metadata.repository + '/build/' + metadata.build_id;
|
||||||
},
|
},
|
||||||
'dismissable': true
|
'dismissable': true
|
||||||
},
|
},
|
||||||
|
|
Reference in a new issue