Skip to content

Fix: incident summarize records/returns duplicate incidents for the same trace - #58

Merged
AnupamKumar-1 merged 1 commit into
mainfrom
fix/incident-duplicate-recording
Aug 30, 2026
Merged

Fix: incident summarize records/returns duplicate incidents for the same trace#58
AnupamKumar-1 merged 1 commit into
mainfrom
fix/incident-duplicate-recording

Conversation

@AnupamKumar-1

Copy link
Copy Markdown
Member

Fixes duplicate incident rows for repeated investigations of the same trace (upsert on trace_id, unique index migration with dedup of existing rows), adds a defense-in-depth dedup in findSimilarIncidents, and dedupes evidence items by id in summarizeIncident. Live-reproduced the incidents-table duplication; the evidence-row dedup is a defensive fix matching the pattern already used elsewhere in summarizeIncident.

@AnupamKumar-1
AnupamKumar-1 merged commit 8054ba2 into main Aug 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant