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

Improve get_alerts efficiency #693

Closed
talboren opened this issue Jan 7, 2024 · 0 comments · Fixed by #698
Closed

Improve get_alerts efficiency #693

talboren opened this issue Jan 7, 2024 · 0 comments · Fixed by #698
Assignees
Labels
API API related issues Enhancement New feature or request UI User interface related issues

Comments

@talboren
Copy link
Member

talboren commented Jan 7, 2024

Is your feature request related to a problem? Please describe.
Right now, when requesting alerts from the backend, we get all the alerts a specific tenant has.
get_alerts should return the last instance for every alert, based on fingerprint, and the alerts history only when the history modal is opened.

Describe the solution you'd like
get_alerts to return last instance of a fingerprint
get_alerts_history(fingerprint) to return all the instances of the same alert, paginated

@talboren talboren added Enhancement New feature or request UI User interface related issues API API related issues labels Jan 7, 2024
@talboren talboren self-assigned this Jan 7, 2024
@talboren talboren linked a pull request Jan 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API related issues Enhancement New feature or request UI User interface related issues
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant