yocto_console_view: Show build reason in console display

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2018-09-05 14:29:48 +01:00
parent b972e58722
commit 92bcd50cce
3 changed files with 7 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class Console extends Controller
return 1
@$scope.builds = @builds = @dataAccessor.getBuilds
property: ["yp_build_revision", "yp_build_branch"]
property: ["yp_build_revision", "yp_build_branch", "reason"]
limit: @buildLimit
order: '-started_at'
@changes = @dataAccessor.getChanges({limit: @changeLimit, order: '-changeid'})
@ -280,6 +280,8 @@ class Console extends Controller
change.caption = build.properties.yp_build_branch[0]
change.revlink = "http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=" + rev
change.errorlink = "http://errors.yoctoproject.org/Errors/Latest/Autobuilder/?filter=" + rev + "&type=commit"
if build.properties?.reason?
change.reason = build.properties.reason[0]
else
if buildset? and buildset.parent_buildid?

View File

@ -11,6 +11,9 @@ div.yoctochangedetails(style="width:100%;")
i.fa.fa-chevron-circle-right.rotate.clickable(ng-class="{'fa-rotate-90':change.show_details}")
div.anim-changedetails(ng-show="change.show_details")
table.table.table-striped.table-condensed(ng-show="change.show_details")
tr(ng-show="change.reason")
td Reason
td {{ change.reason }}
tr(ng-show="change.author")
td Author
td {{ change.author }}

File diff suppressed because one or more lines are too long