fix: [Alert enrichment] when changing status of incident, other enrichments of alerts are gone #5259
Closes #5259
📑 Description
Alert enrichment: I've noticed when you acknowledge an incident, it acknowledges the alert too by adding the enrichment "status": "acknowledged" but all other previous enrichments are gone. Same goes when you resolve and incident.
Now in batch_enrich function, we merge enrichments before committing them to the db.
✅ Checks
- [x] My pull request adheres to the code style of this project
- [ ] All the tests have passed
@bbcorp is attempting to deploy a commit to the KeepHQ Team on Vercel.
A member of the Team first needs to authorize it.
The latest updates on your projects. Learn more about Vercel for GitHub.
Thats what I thought too, do you see a way to make it in bulk SQL query anyway? I was thinking we could merge at code level but then I wonder how we could do the SQL in bulk?