monitoring(overview): globally sort jenkins rows across status frames
This commit is contained in:
parent
8ac428f816
commit
c573012a7c
@ -1526,6 +1526,7 @@ def jenkins_weather_statlist_panel(
|
||||
limit=12,
|
||||
title_size=12,
|
||||
value_size=12,
|
||||
merge_for_global_sort=False,
|
||||
links=None,
|
||||
description=None,
|
||||
):
|
||||
@ -1603,8 +1604,14 @@ def jenkins_weather_statlist_panel(
|
||||
"textMode": "name_and_value",
|
||||
"text": {"titleSize": title_size, "valueSize": value_size},
|
||||
},
|
||||
"transformations": [{"id": "sortBy", "options": {"fields": ["Value"], "order": sort_order}}],
|
||||
"transformations": [],
|
||||
}
|
||||
if merge_for_global_sort:
|
||||
# Merge per-status query frames so sortBy orders all rows globally.
|
||||
panel["transformations"].append({"id": "merge", "options": {}})
|
||||
panel["transformations"].append(
|
||||
{"id": "sortBy", "options": {"fields": ["Value"], "order": sort_order}}
|
||||
)
|
||||
if limit:
|
||||
panel["transformations"].append({"id": "limit", "options": {"limit": limit}})
|
||||
if links:
|
||||
@ -2206,6 +2213,7 @@ def build_overview():
|
||||
limit=None,
|
||||
title_size=11,
|
||||
value_size=11,
|
||||
merge_for_global_sort=True,
|
||||
links=link_to("atlas-jobs"),
|
||||
description=(
|
||||
"Top 6 most recent Jenkins successes by age (newest first). "
|
||||
@ -2226,6 +2234,7 @@ def build_overview():
|
||||
limit=None,
|
||||
title_size=11,
|
||||
value_size=11,
|
||||
merge_for_global_sort=True,
|
||||
links=link_to("atlas-jobs"),
|
||||
description=(
|
||||
"Top 6 most recent Jenkins failures by age (newest first). "
|
||||
|
||||
@ -2417,6 +2417,10 @@
|
||||
}
|
||||
},
|
||||
"transformations": [
|
||||
{
|
||||
"id": "merge",
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"id": "sortBy",
|
||||
"options": {
|
||||
@ -2572,6 +2576,10 @@
|
||||
}
|
||||
},
|
||||
"transformations": [
|
||||
{
|
||||
"id": "merge",
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"id": "sortBy",
|
||||
"options": {
|
||||
|
||||
@ -2426,6 +2426,10 @@ data:
|
||||
}
|
||||
},
|
||||
"transformations": [
|
||||
{
|
||||
"id": "merge",
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"id": "sortBy",
|
||||
"options": {
|
||||
@ -2581,6 +2585,10 @@ data:
|
||||
}
|
||||
},
|
||||
"transformations": [
|
||||
{
|
||||
"id": "merge",
|
||||
"options": {}
|
||||
},
|
||||
{
|
||||
"id": "sortBy",
|
||||
"options": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user