monitoring: disable fan intensity legend safely
This commit is contained in:
parent
02e8e633a5
commit
a739f14a86
@ -2121,7 +2121,7 @@ def build_overview():
|
|||||||
links=overview_link("atlas-power"),
|
links=overview_link("atlas-power"),
|
||||||
description="Fan intensity lanes on the 0-10 controller scale. Cooler colors are quiet/low intensity; warmer colors mean the enclosure is pushing harder.",
|
description="Fan intensity lanes on the 0-10 controller scale. Cooler colors are quiet/low intensity; warmer colors mean the enclosure is pushing harder.",
|
||||||
)
|
)
|
||||||
fan_panel["options"]["legend"] = {"displayMode": "hidden", "placement": "bottom"}
|
fan_panel["options"]["legend"] = {"displayMode": "list", "placement": "bottom", "showLegend": False}
|
||||||
fan_panel["options"]["mergeValues"] = False
|
fan_panel["options"]["mergeValues"] = False
|
||||||
fan_panel["options"]["showValue"] = "auto"
|
fan_panel["options"]["showValue"] = "auto"
|
||||||
fan_panel["options"]["tooltip"] = {"mode": "multi", "sort": "none"}
|
fan_panel["options"]["tooltip"] = {"mode": "multi", "sort": "none"}
|
||||||
|
|||||||
@ -109,7 +109,8 @@ def test_overview_uses_readable_quality_power_and_gitops_panels():
|
|||||||
assert fan_mappings["0"]["text"] == "Off"
|
assert fan_mappings["0"]["text"] == "Off"
|
||||||
assert fan_mappings["10"]["text"] == "10"
|
assert fan_mappings["10"]["text"] == "10"
|
||||||
assert "Tent Interior" in panels_by_title["Fan Intensity History"]["targets"][0]["expr"]
|
assert "Tent Interior" in panels_by_title["Fan Intensity History"]["targets"][0]["expr"]
|
||||||
assert panels_by_title["Fan Intensity History"]["options"]["legend"]["displayMode"] == "hidden"
|
assert panels_by_title["Fan Intensity History"]["options"]["legend"]["displayMode"] == "list"
|
||||||
|
assert panels_by_title["Fan Intensity History"]["options"]["legend"]["showLegend"] is False
|
||||||
assert panels_by_title["Fan Intensity History"]["options"]["mergeValues"] is False
|
assert panels_by_title["Fan Intensity History"]["options"]["mergeValues"] is False
|
||||||
assert panels_by_title["Fan Intensity History"]["options"]["showValue"] == "auto"
|
assert panels_by_title["Fan Intensity History"]["options"]["showValue"] == "auto"
|
||||||
|
|
||||||
|
|||||||
@ -2001,8 +2001,9 @@
|
|||||||
"mergeValues": false,
|
"mergeValues": false,
|
||||||
"showValue": "auto",
|
"showValue": "auto",
|
||||||
"legend": {
|
"legend": {
|
||||||
"displayMode": "hidden",
|
"displayMode": "list",
|
||||||
"placement": "bottom"
|
"placement": "bottom",
|
||||||
|
"showLegend": false
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
"mode": "multi",
|
"mode": "multi",
|
||||||
|
|||||||
@ -2010,8 +2010,9 @@ data:
|
|||||||
"mergeValues": false,
|
"mergeValues": false,
|
||||||
"showValue": "auto",
|
"showValue": "auto",
|
||||||
"legend": {
|
"legend": {
|
||||||
"displayMode": "hidden",
|
"displayMode": "list",
|
||||||
"placement": "bottom"
|
"placement": "bottom",
|
||||||
|
"showLegend": false
|
||||||
},
|
},
|
||||||
"tooltip": {
|
"tooltip": {
|
||||||
"mode": "multi",
|
"mode": "multi",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user