Skip to content

Commit 7e61fc3

Browse files
authored
[Benchmark] Fix benchmark dashboard failing to load metadata (#20026)
A previous PR removed these lines, causing metadata to no longer load in the benchmark dashboard. This PR restores these lines.
1 parent 6fc912a commit 7e61fc3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

devops/scripts/benchmarks/html/scripts.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,12 @@ function fetchAndProcessData(url, isArchived = false) {
16061606
// Replace existing data for current data
16071607
loadedBenchmarkRuns = newRuns;
16081608
}
1609+
1610+
// The following variables have same values regardless of whether
1611+
// we load archived or current data
1612+
benchmarkMetadata = data.metadata || benchmarkMetadata || {};
1613+
benchmarkTags = data.tags || benchmarkTags || {};
1614+
16091615
initializeCharts();
16101616
})
16111617
.catch(error => {

0 commit comments

Comments
 (0)