mirror of
https://git.yoctoproject.org/poky
synced 2026-06-02 01:19:52 +00:00
bitbake: toaster: most-build-targets bug fixes
Fixes for the following for the "Most built targets" section of the project page: 1) limit the number of most built targets to 5, 2) order the list of most built targets by build count, 3) select only those builds that had build status of 'fail', 'success', or a BuildRequest of 'failed', 4) if there are no layers in the project then (on refresh) all of the checkboxes in the 'Most built targets' list are disabled. Note that per agreement with UI designer, the only sort on the most target list is build count as described in (3) above; secondary sorting is random. [YOCTO #7177] (Bitbake rev: dda2f07193e740860f4497c3761d340d8c5c2b41) Signed-off-by: Dave Lerner <dave.lerner@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
1a4c8a849a
commit
eeef93ad07
@@ -328,10 +328,10 @@ vim: expandtab tabstop=2
|
||||
<h4 class="air">
|
||||
Most built targets
|
||||
</h4>
|
||||
<ul class="unstyled configuration-list">
|
||||
<ul class="unstyled configuration-list {[mutedtargets]}">
|
||||
<li ng-repeat="t in frequenttargets">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" ng-model="mostBuiltTargets[t]">{[t]}
|
||||
<input type="checkbox" ng-model="mostBuiltTargets[t]" ng-disabled="disableBuildCheckbox(t)" ng-checked="mostBuiltTargets[t] && !disableBuildCheckbox(t)">{[t]}
|
||||
</label>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -443,7 +443,8 @@ angular.element(document).ready(function() {
|
||||
scope.frequenttargets = {{freqtargets|json}};
|
||||
scope.machine = {{machine|json}};
|
||||
scope.releases = {{releases|json}};
|
||||
|
||||
scope.layerCount = scope.layers.length;
|
||||
scope.mutedtargets = (scope.layerCount == 0 ? "muted" : "")
|
||||
var now = (new Date()).getTime();
|
||||
scope.todaydate = now - (now % 86400000);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user