From a35cd5a35b9683e0f88ebd3405ac9b06664d537f Mon Sep 17 00:00:00 2001 From: Nemental <15136847+Nemental@users.noreply.github.com> Date: Sun, 16 Jun 2024 11:23:40 +0200 Subject: [PATCH 1/2] fix: grafana version sorting --- hacking/find_grafana_versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hacking/find_grafana_versions.py b/hacking/find_grafana_versions.py index 716f877a..c54f18ca 100644 --- a/hacking/find_grafana_versions.py +++ b/hacking/find_grafana_versions.py @@ -33,7 +33,7 @@ def get_grafana_releases(): if major not in by_major.keys() or by_major[major]["as_tuple"] < as_tuple: by_major[major] = {"version": version, "as_tuple": as_tuple} - latest_3_majors = sorted(list(by_major.keys()))[:3] + latest_3_majors = sorted(list(by_major.keys()), reverse=True)[:3] latest_releases = [by_major[idx]["version"] for idx in latest_3_majors] print(json.dumps(latest_releases)) From 393e9ef111ad619faf41f2a9c0fa15f9c33acaae Mon Sep 17 00:00:00 2001 From: Nemental <15136847+Nemental@users.noreply.github.com> Date: Sun, 16 Jun 2024 13:04:04 +0200 Subject: [PATCH 2/2] docs: chabgelog fragment --- changelogs/fragments/378-grafana-version-sorting.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 changelogs/fragments/378-grafana-version-sorting.yml diff --git a/changelogs/fragments/378-grafana-version-sorting.yml b/changelogs/fragments/378-grafana-version-sorting.yml new file mode 100644 index 00000000..46c74655 --- /dev/null +++ b/changelogs/fragments/378-grafana-version-sorting.yml @@ -0,0 +1,3 @@ +--- +trivial: + - Fix grafana version sorting