Make the data block returned by the server mirror that of the build server. Make the UI respond to the new status format for pushing.
This commit is contained in:
parent
8981f576fc
commit
06e03b1260
3 changed files with 5 additions and 6 deletions
|
@ -136,7 +136,7 @@ MIME_PROCESSORS = {
|
|||
'application/octet-stream': prepare_dockerfile,
|
||||
}
|
||||
|
||||
|
||||
# If this format it should also be changed in the api method get_repo_builds
|
||||
build = {
|
||||
'total_commands': None,
|
||||
'current_command': None,
|
||||
|
|
|
@ -874,15 +874,15 @@ def get_repo_builds(namespace, repository):
|
|||
return node_status
|
||||
|
||||
# If there was no status url, do the best we can
|
||||
# The format of this block should mirror that of the buildserver.
|
||||
return {
|
||||
'id': build_obj.id,
|
||||
'total_commands': None,
|
||||
'total_images': None,
|
||||
'current_command': None,
|
||||
'current_image': None,
|
||||
'image_completion_percent': None,
|
||||
'push_completion': 0.0,
|
||||
'status': build_obj.phase,
|
||||
'message': None,
|
||||
'image_completion': {},
|
||||
}
|
||||
|
||||
builds = model.list_repository_builds(namespace, repository)
|
||||
|
|
|
@ -2030,8 +2030,7 @@ quayApp.directive('buildStatus', function () {
|
|||
break;
|
||||
|
||||
case 'pushing':
|
||||
var imagePercentDecimal = (buildInfo.image_completion_percent / 100);
|
||||
return ((buildInfo.current_image + imagePercentDecimal) / buildInfo.total_images) * 100;
|
||||
return buildInfo.push_completion * 100;
|
||||
break;
|
||||
|
||||
case 'complete':
|
||||
|
|
Reference in a new issue