iachat/spec
Pranav Raj S 29106ebc4b
fix: raise_lock_acquisition_error if the job cannot set the lock (#8744)
Consider a scenario where two jobs are concurrently accessing a job with a lock mechanism. If the second job accesses lock_manager.locked? before the first job called lock_manager.lock(lock_key), it would return a false positive. At this point, both jobs can be executed freely.

To address this issue, the following change ensures that only the current thread that has set the lock can execute. Otherwise, a LockAcquisitionError will be thrown.

Co-authored-by: Sojan Jose <sojan@pepalo.com>
Co-authored-by: Shivam Mishra <scm.mymail@gmail.com>
2024-01-19 14:31:41 +04:00
..
actions fix: Stop overwritting contact avatars unneccesarily (#8710) 2024-01-16 16:38:46 +04:00
assets chore: Contact import improvements (#7787) 2023-08-23 23:24:47 -07:00
builders chore: Get all notification API improvments (#8549) 2024-01-17 09:02:18 +05:30
channels chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
configs chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
controllers fix: API error when using SuperAdmin token (#8739) 2024-01-18 18:49:32 +04:00
cypress chore: Upgrade Cypress to 13.4.0 (#8271) 2023-10-31 19:39:34 -07:00
dispatchers Non blocking event dispatch (#652) 2020-03-29 19:18:30 +05:30
drops feat: Add the support for custom attributes in message variables (#8511) 2023-12-08 14:13:35 -08:00
enterprise fix: skip auditlogs for whatsapp template sync (#8579) 2024-01-09 21:51:48 -08:00
factories feat: handle unsupported media on the backend (#8650) 2024-01-05 13:05:00 -08:00
finders chore: Get all notification API improvments (#8549) 2024-01-17 09:02:18 +05:30
fixtures chore: Fix sentry errors in email processing for bounce notifications (#8677) 2024-01-10 14:30:23 -08:00
helpers fix: Undefined method `length' for nil:NilClass (#8491) 2023-12-05 16:34:29 +05:30
integration Fix url in emails, add frontendURL helper (#19) 2019-08-25 19:59:28 +05:30
jobs fix: raise_lock_acquisition_error if the job cannot set the lock (#8744) 2024-01-19 14:31:41 +04:00
lib chore: Unset Redis config after spec (#8685) 2024-01-10 15:32:48 -08:00
listeners feat: Clear all previous notifications if a new notification is added to a conversation (#8490) 2023-12-06 14:03:43 +05:30
mailboxes chore: Fix sentry errors in email processing for bounce notifications (#8677) 2024-01-10 14:30:23 -08:00
mailers feat: Handle notification.deleted action cable event (#8501) 2023-12-06 16:49:00 +05:30
models feat: Use Telegram HTML Parsemode (#8731) 2024-01-18 15:36:36 +04:00
policies Feature: Ability to switch between multiple accounts (#881) 2020-05-26 22:38:48 +05:30
presenters fix: Consider the emails where in-reply-to header has multiple values (#7715) 2023-08-11 17:53:57 -07:00
requests/api/v1 feat: Update the slack integration-flow to allow users to select the channel (#7637) 2023-07-28 14:50:30 -07:00
services fix: undefined method 'zero?' for nil:NilClass (#8689) 2024-01-15 15:07:36 +05:30
support feat: Slack link unfurling (#7940) 2023-09-29 19:35:56 +05:30
workers chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
cypress.config.js chore: Upgrade Cypress to 13.4.0 (#8271) 2023-10-31 19:39:34 -07:00
rails_helper.rb feat: locking and retry in FB message parsing (#7701) 2023-08-23 09:48:17 +07:00
spec_helper.rb chore: upgrade ruby to 3.1.3 (#5555) 2023-01-24 23:55:07 +05:30
test_helper.rb Chore: Setup test coverage in codeclimate [#332] (#333) 2019-12-02 08:57:11 +05:30