Skip to content

Commit

Permalink
Use started_at for alert group order in paginator (#3271)
Browse files Browse the repository at this point in the history
# 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)
  • Loading branch information
mderynck authored Nov 3, 2023
1 parent 66219b1 commit b70212f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/common/api_helpers/paginators.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ class FifteenPageSizePaginator(PathPrefixedPagePagination):

class TwentyFiveCursorPaginator(PathPrefixedCursorPagination):
page_size = 25
ordering = "-pk"
ordering = "-started_at"

0 comments on commit b70212f

Please sign in to comment.