Commit 0cefbe7
committed
Fix history sidebar to only include enabled panels
The DatabaseStore fix caused all panels to be loaded, including disabled
ones like ProfilingPanel. The history sidebar was including all panels
in its JSON response rather than filtering by enabled status.
This change adds a check for panel.enabled in the history sidebar view
to ensure only enabled panels are included in the response, matching
the behavior expected by tests and consistent with the main toolbar
display logic.
Fixes failing tests:
- test_history_sidebar
- test_history_sidebar_expired_request_id
- test_history_sidebar_includes_history1 parent d37c910 commit 0cefbe7
2 files changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
0 commit comments