aboutsummaryrefslogtreecommitdiffstats
path: root/csit.infra.dash/app/cdash/trending/layout.py
diff options
context:
space:
mode:
Diffstat (limited to 'csit.infra.dash/app/cdash/trending/layout.py')
-rw-r--r--csit.infra.dash/app/cdash/trending/layout.py20
1 files changed, 17 insertions, 3 deletions
diff --git a/csit.infra.dash/app/cdash/trending/layout.py b/csit.infra.dash/app/cdash/trending/layout.py
index 87d11626d4..8b933b550e 100644
--- a/csit.infra.dash/app/cdash/trending/layout.py
+++ b/csit.infra.dash/app/cdash/trending/layout.py
@@ -915,12 +915,12 @@ class Layout:
"""
if not graphs:
return C.PLACEHOLDER
-
+
acc_items = list()
for graph in graphs:
acc_items.append(
dbc.AccordionItem(
- title=f"Telemetry: {graph[1]}",
+ title=f"Telemetry: {graph[1]}" if graph[1] else "Telemetry",
children=dcc.Graph(
id={"type": "graph-telemetry", "index": graph[1]},
figure=graph[0]
@@ -992,6 +992,16 @@ class Layout:
children=["Add content here."]
),
dbc.Row(
+ id="telemetry-all-in-one",
+ class_name="g-0 p-2",
+ children=[
+ dbc.Checkbox(
+ id="cb-all-in-one",
+ label="All Metrics in one Graph"
+ ),
+ ]
+ ),
+ dbc.Row(
class_name="g-0 p-1",
children=[
dbc.Textarea(
@@ -1389,6 +1399,7 @@ class Layout:
State("store-telemetry-data", "data"),
State("store-telemetry-user", "data"),
State("store-selected-tests", "data"),
+ State("cb-all-in-one", "value"),
Input({"type": "tele-cl", "index": ALL}, "value"),
Input("telemetry-search-in", "value"),
Input({"type": "telemetry-btn", "index": ALL}, "n_clicks"),
@@ -1399,6 +1410,7 @@ class Layout:
tm_data: dict,
tm_user: dict,
store_sel: list,
+ all_in_one: bool,
cl_metrics: list,
search_in: str,
n_clicks: list,
@@ -1483,7 +1495,9 @@ class Layout:
tm.select_tm_trending_data(
tm_user["selected_metrics_with_labels"]
),
- self._graph_layout)
+ self._graph_layout,
+ all_in_one
+ )
)
tm_user = None
is_open = (False, False)