From b70212f4ab744797a9049cd144429c7025e88a98 Mon Sep 17 00:00:00 2001 From: Michael Derynck Date: Fri, 3 Nov 2023 11:29:21 -0600 Subject: [PATCH] Use started_at for alert group order in paginator (#3271) # What this PR does Fix inconsistency in alert group ordering introduced by #3240 ## Which issue(s) this PR fixes ## Checklist - [ ] Unit, integration, and e2e (if applicable) tests updated - [ ] Documentation added (or `pr:no public docs` PR label added if not required) - [ ] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not required) --- engine/common/api_helpers/paginators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/common/api_helpers/paginators.py b/engine/common/api_helpers/paginators.py index 34a20c273b..1e1a202848 100644 --- a/engine/common/api_helpers/paginators.py +++ b/engine/common/api_helpers/paginators.py @@ -82,4 +82,4 @@ class FifteenPageSizePaginator(PathPrefixedPagePagination): class TwentyFiveCursorPaginator(PathPrefixedCursorPagination): page_size = 25 - ordering = "-pk" + ordering = "-started_at"