Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order alert groups by -started_at in internal API #3240

Merged
merged 4 commits into from
Nov 1, 2023

Conversation

mderynck
Copy link
Contributor

@mderynck mderynck commented Nov 1, 2023

What this PR does

Order alert groups in API by -started_at instead of -pk. This should result in no visible change for most installations. In the case where alert groups are being moved/restored between installations this allows for the display order to be as expected without relying on insertion order.

Note: Public API is already using -started_at instead of pk and it is already indexed.

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)

@mderynck mderynck added the pr:no public docs Added to a PR that does not require public documentation updates label Nov 1, 2023
@mderynck mderynck marked this pull request as ready for review November 1, 2023 18:08
@mderynck mderynck requested a review from a team November 1, 2023 18:08
@mderynck mderynck merged commit 3b02c58 into dev Nov 1, 2023
@mderynck mderynck deleted the mderynck/order-alert-groups branch November 1, 2023 19:19
github-merge-queue bot pushed a commit that referenced this pull request Nov 3, 2023
# 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)
@vstpme vstpme mentioned this pull request Dec 5, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:no public docs Added to a PR that does not require public documentation updates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants