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

Alert Group Doesn't show newest Alert payloads or correct Latest Alert time #857

Closed
qubitspace opened this issue Nov 15, 2022 · 1 comment
Assignees
Labels
bug Something isn't working involved:Frontend

Comments

@qubitspace
Copy link

qubitspace commented Nov 15, 2022

latest
Example: In the above example, we have 800 alerts in the group, and the latest one was a few minutes ago, but it says it was 19 hours ago because it's only looking at the latest from the first batch of results.

In alert groups, when there are more than 100 alerts in an alert group, it shows only the first 100 payloads, and it's sorted by oldest first, so the newest alerts in the group do not shows up.
It also shows the "Latest " message based on the newest alert from the first batch of 100 instead of the actual most recent alert.

@raphael-batte raphael-batte added the bug Something isn't working label Nov 28, 2022
@maskin25 maskin25 self-assigned this Feb 6, 2023
@maskin25
Copy link
Contributor

got it, yep it's a problem, @vadimkerr I propose to return latest alerts first, it solves the issue, now we get latest alert like:
const latestAlert = alerts[alerts.length - 1];

will be:
const latestAlert = alerts[0];

@vstpme vstpme self-assigned this Feb 27, 2023
@vstpme vstpme closed this as completed in a25fd42 Feb 28, 2023
brojd pushed a commit that referenced this issue Sep 18, 2024
# What this PR does
Make internal API return 100 latest alerts for alert group.

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

## Checklist

- [x] Tests updated
- [x] `CHANGELOG.md` updated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working involved:Frontend
Projects
None yet
Development

No branches or pull requests

4 participants