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

Guard against incidents being duplicated in incident list API responses #484

Merged
merged 2 commits into from
Aug 8, 2024

Conversation

gsreynolds
Copy link
Member

@gsreynolds gsreynolds commented Aug 7, 2024

  • Sort by incident_number and not created_by to ensure stable sorting
  • The incident list API may return duplicate incidents under some circumstances, so as a precaution we'll dedupe the list by incident.id

…mstances, so as a precaution we'll dedupe the list by incident.id

Signed-off-by: Gavin Reynolds <[email protected]>
@gsreynolds gsreynolds added the fix Fix bug/issue label Aug 7, 2024
@gsreynolds gsreynolds added this to the v0.13.2 milestone Aug 7, 2024
@gsreynolds gsreynolds merged commit b45b9ce into develop Aug 8, 2024
18 checks passed
@gsreynolds gsreynolds deleted the unique_incidents branch August 8, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix Fix bug/issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incident list API may return incidents more than once under some circumstances
1 participant