console_view: Persist onChange BySSID/ByRevision arrays between calls

This was changed compared to the upstream console view code due to bugs in our
own changes code. Those are now fixed so revert to the upstream version allowing
these data structures to persist and not always be reset.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2023-03-22 23:46:14 +00:00
parent 16aa9fd46b
commit 452332d142

View File

@ -183,8 +183,8 @@ class Console {
this.sortBuildersByTags(this.all_builders);
this.changesBySSID = {};
this.changesByRevision = {};
if (this.changesBySSID == null) { this.changesBySSID = {}; }
if (this.changesByRevision == null) { this.changesByRevision = {}; }
for (change of Array.from(this.changes)) {
this.changesBySSID[change.sourcestamp.ssid] = change;
this.changesByRevision[change.revision] = change;