Repository navigation
Improve Dashboard Webpage - #115019
Improve Dashboard Webpage#115019
Conversation
|
Workflow [PR], commit [7be817c] Summary: ❌
AI ReviewSummaryThis PR improves the dashboard UI by keeping charts visible during errors, exposing the graph view immediately, and trying to make reloads cancellable. The current implementation still has two state-management bugs in the new refresh model: failed or superseded dashboard searches can leave the visible charts detached from the saved/dashboard state, and the incremental “add charts from metrics” path can corrupt chart indexing if it runs while an older refresh is still in flight. Findings
Final VerdictRequest changes. |
| async function reloadAll(do_search) { | ||
| disableButtons(); | ||
| const epoch = ++reload_epoch; | ||
| cancelQueries(); |
There was a problem hiding this comment.
Because the page now keeps the old charts visible, clearing queries before searchQueries succeeds leaves the UI and the saved state out of sync whenever that search fails or gets superseded. The old chart DOM and plots stay on screen, but queries, customized, and the hash already describe an empty dashboard, so the next edit/reload runs against queries.length == 0 even though the user still sees the previous charts. Please stage the search result in a local array and only swap queries/saveState after the new dashboard has been fetched successfully.
| /// Insert and draw only the new charts; the existing ones are not reloaded. | ||
| new_charts.forEach(q => findParamsInQuery(q.query, params)); | ||
| buildParams(); | ||
| plots.unshift(...new_charts.map(() => null)); |
There was a problem hiding this comment.
This incremental prepend path needs to supersede any in-flight refresh before it mutates queries and plots. If an older drawAll is still waiting on draw(0, old_chart_0) / draw(1, old_chart_1), the unshift plus insertChart(i) calls move those charts back, but the stale completions still write into plots[0] / plots[1]. That overwrites the new front slots and leaves plots, queries, and DOM order inconsistent for later resize, delete, or edit actions. At minimum this path should cancelQueries (or bump a generation token) before shifting the arrays.
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline. |
Backport #115019 to 26.6: Improve Dashboard Webpage
Backport #115019 to 26.3: Improve Dashboard Webpage
Backport #115019 to 26.5: Improve Dashboard Webpage
Backport #115019 to 26.7: Improve Dashboard Webpage
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
This patch:
Version info
26.8.1.1553(included in26.8and later)26.7.5.12,26.6.3.59,26.5.8.10,26.3.21.8