Skip to content

[🐛 Bug]: Route get alerts/{fingerprint} doesn't work as expected, can't fetch an alert that isn't in the last 1000 alerts #5255

@DolevNe

Description

@DolevNe

Describe the bug
the function that gets the alert by fingerprint uses a function that fetches the last 1000 alerts (get_last_alerts)

To Reproduce
try to get an alert by fingerprint that isn't from the last 1000 alerts

Expected behavior
the route should use the function get_last_alerts_by_fingerprints
Screenshots

Image fix: Image

Additional context
I think the same behavior is repeated when trying to query a preset of "old" alerts

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions