ci: fix post-submit frontend display
Change-Id: Ia61ebb6ae80c7034c616759cf292c21293ba5515
diff --git a/infra/ci/frontend/static/script.js b/infra/ci/frontend/static/script.js
index 8c1d6e4..207cc83 100644
--- a/infra/ci/frontend/static/script.js
+++ b/infra/ci/frontend/static/script.js
@@ -57,7 +57,7 @@
// Maps 'worker id' -> DB wokrker object, as per /ci/workers.
dbWorker: {},
- // Maps 'main-YYMMDD' -> DB branch object, as perf /ci/branches/xxx.
+ // Maps 'main-YYMMDD' -> DB branch object, as per /ci/branches/xxx.
dbBranches: {},
getBranchKeys: () => Object.keys(state.dbBranches).sort().reverse(),
@@ -652,7 +652,11 @@
function fetchCIStatusForBranch(branch) {
if (branch in state.branchRefs) return; // Already have a listener.
const db = firebase.database();
- const ref = db.ref('/ci/branches').orderByKey().limitToLast(20);
+ const ref = db.ref('/ci/branches')
+ .orderByKey()
+ .startAt('main')
+ .endAt('maio')
+ .limitToLast(20);
state.branchRefs[branch] = ref;
ref.on('value', (e) => {
const resp = e.val();