iachat/app
Sojan Jose 9a8442fe0e
chore: Handle conversation participation creation race condition error (#9449)
We observed some race condition errors in the conversation participation listener while trying to create a conversation participation assignment. This PR handles this error and also adds additional debug information for future.

fixes: https://linear.app/chatwoot/issue/CW-3296/activerecordrecordnotunique-pguniqueviolation-error-duplicate-key

## Changelog

- handles `ActiveRecord::RecordNotUnique, ActiveRecord::RecordInvald` errors so that they won't pollute sentry
- Adds a debug statement to log the cases
- Add previous_changes into the dispatcher so that we know the exact attribute changes which trigger `assignee_changed, team_changed` events ( would be handy in future )
2024-05-10 12:21:23 -07:00
..
actions fix: downcase email before finding (#8921) 2024-02-21 18:51:00 +05:30
assets chore: Reorganize the installation config settings (#8794) 2024-01-31 16:48:42 +04:00
builders fix: Profile pictures missing in facebook inbox [CW-1976] (#9212) 2024-05-08 20:38:16 -07:00
channels chore: Sentry issues (#4623) 2022-05-06 14:50:55 +05:30
controllers feat: Add support for bulk snooze until (#9360) 2024-05-08 08:55:31 +05:30
dashboards feat: Super admin design improvements (#8517) 2023-12-08 19:40:35 -08:00
dispatchers fix: assignee_changed callback not getting triggered during conversation creation (#9334) 2024-05-06 11:48:17 -07:00
drops feat: Add the support for custom attributes in message variables (#8511) 2023-12-08 14:13:35 -08:00
fields feat: Supports masking tokens in super admin (#6491) 2023-02-21 17:50:55 +05:30
finders feat: Conversation API to return applied_sla and sla_events (#9174) 2024-04-01 23:30:07 +05:30
helpers feat: Include resolution time and waiting time in team & agent report export (#9296) 2024-05-02 17:29:52 -07:00
javascript feat: add missing clickaway directives (#9451) 2024-05-10 11:15:36 +05:30
jobs feat: Add support for bulk snooze until (#9360) 2024-05-08 08:55:31 +05:30
listeners chore: Handle conversation participation creation race condition error (#9449) 2024-05-10 12:21:23 -07:00
mailboxes chore: Handle invalid email address in IMAP channel (#9450) 2024-05-10 08:55:26 +05:30
mailers chore: fix sla email notifications (#9192) 2024-04-04 21:16:49 +05:30
models chore: Handle conversation participation creation race condition error (#9449) 2024-05-10 12:21:23 -07:00
policies feat: Add endpoints to retrieve summary of team/agents over a period of time (#8916) 2024-02-13 15:44:40 +05:30
presenters feat: Conversation API to return applied_sla and sla_events (#9174) 2024-04-01 23:30:07 +05:30
services feat: exporting contacts takes the filters into account (#9347) 2024-05-07 20:18:36 -07:00
views feat: allow feature plan map in super admin (#9318) 2024-05-08 22:58:46 -07:00
workers fix: Capture delivery errors to avoid false positives (#8790) 2024-01-26 14:22:18 +04:00
test-matchers.js Initial testing with jest (#133) 2019-10-15 00:18:46 +05:30