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

Allow Alert API endpoint to be sorted by newest issue first #1031

Closed
tleecsm opened this issue Dec 20, 2022 · 3 comments
Closed

Allow Alert API endpoint to be sorted by newest issue first #1031

tleecsm opened this issue Dec 20, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@tleecsm
Copy link

tleecsm commented Dec 20, 2022

The current functionality of the Alerts API endpoint is to return alerts by created_at in ascending order. This means our oldest alerts will always be at the top of the response. For our use cases, this is pretty inconvenient. It would be nice if this endpoint returned the newest alerts first with the older alerts following thereafter. This doesn't necessarily need to be default behavior, and could be locked behind a query parameter.

@Matvey-Kuk
Copy link
Contributor

Sounds like a bug for me, worth fixing.

@Matvey-Kuk Matvey-Kuk added the bug Something isn't working label Dec 21, 2022
@Matvey-Kuk
Copy link
Contributor

Taking this one to the core team's backlog.

@Matvey-Kuk
Copy link
Contributor

@jtheory I think it's purely backend

github-merge-queue bot pushed a commit that referenced this issue Jun 29, 2023
# What this PR does
Change alerts order in `/alert` public api endpoint

## Which issue(s) this PR fixes
#1031

## Checklist

- [x] Unit, integration, and e2e (if applicable) tests updated
- [x] Documentation added (or `pr:no public docs` PR label added if not
required)
- [x] `CHANGELOG.md` updated (or `pr:no changelog` PR label added if not
required)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants