mirror of
git://git.yoctoproject.org/yocto-autobuilder2.git
synced 2025-07-19 12:49:03 +02:00
console_view: Update builders in fake changes correctly
Where we inject a "fake" change, we then never update the list of builders it contains. This leads to bugs in the UI rendering since the builders list might not be the accurate in early calls to the onChange function. Keep track of fake changes and update those too so the builders list is maintained. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
cc06e00f29
commit
16aa9fd46b
|
@ -106,6 +106,7 @@ class Console {
|
|||
order: '-started_at'
|
||||
}));
|
||||
this.changes = this.dataAccessor.getChanges({limit: this.changeLimit, order: '-changeid'});
|
||||
this.$scope.fakechanges = (this.fakechanges = []);
|
||||
this.buildrequests = this.dataAccessor.getBuildrequests({limit: this.buildLimit, order: '-submitted_at'});
|
||||
this.buildsets = this.dataAccessor.getBuildsets({limit: this.buildLimit, order: '-submitted_at'});
|
||||
|
||||
|
@ -189,7 +190,9 @@ class Console {
|
|||
this.changesByRevision[change.revision] = change;
|
||||
this.populateChange(change);
|
||||
}
|
||||
|
||||
for (change of Array.from(this.fakechanges)) {
|
||||
this.populateChange(change);
|
||||
}
|
||||
|
||||
for (build of Array.from(this.builds)) {
|
||||
this.matchBuildWithChange(build);
|
||||
|
@ -405,6 +408,7 @@ class Console {
|
|||
}
|
||||
if ((change == null)) {
|
||||
change = this.makeFakeChange(rev, build.started_at, rev);
|
||||
this.fakechanges.push(change)
|
||||
}
|
||||
|
||||
change.caption = "Commit";
|
||||
|
@ -438,6 +442,7 @@ class Console {
|
|||
if ((change == null)) {
|
||||
change = this.makeFakeChange(rev, build.started_at, rev);
|
||||
change.caption = rev;
|
||||
this.fakechanges.push(change)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user