chatwoot/config/initializers
Aakash Bakhle 568aae875b
feat: wire up auto-sync job backend [AI-150] (#14117)
# Pull Request Template

## Description

- Wires up Controllers to auto-sync job
- adds plan based sync schedule
- a scheduler that runs every hour to check syncable documents
- guards the whole feature behind feature flag by reclaiming
`twilio_content_templates`
- Adds a global and account level cap on how many documents to enqueue
to prevent sudden burst at first run
- some refactor to simplify code
- specs

Fixes # (issue)

## Type of change

- [x] New feature (non-breaking change which adds functionality)

## How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide
instructions so we can reproduce. Please also list any relevant details
for your test configuration.

specs and locally

## Checklist:

- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published in downstream
modules
2026-04-29 14:47:14 +05:30
..
monkey_patches feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
00_init.rb Chore: Fix failing sidekiq events for contact create (#966) 2020-06-16 19:39:57 +05:30
01_inject_enterprise_edition_module.rb chore: Introduce enterprise edition license (#3209) 2021-12-09 12:07:48 +05:30
01_redis.rb fix: velma connection limit (#13395) 2026-01-29 20:53:41 +05:30
actioncable.rb chore: Enable the new Rubocop rules (#7122) 2023-05-19 14:37:10 +05:30
active_record_query_trace.rb chore: Upgrade rails and ruby versions (#2400) 2021-08-03 20:11:52 +05:30
acts_as_taggable_on.rb fix(perf): disable tags counter cache to prevent label deadlocks (#14021) 2026-04-10 17:32:13 +05:30
ai_agents.rb feat: legacy features to ruby llm (#12994) 2025-12-11 14:17:28 +05:30
application_controller_renderer.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
assets.rb chore: Upgrade rails and ruby versions (#2400) 2021-08-03 20:11:52 +05:30
audited.rb feat: Audit log APIs (#6434) 2023-03-01 20:02:58 +05:30
backtrace_silencers.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
content_security_policy.rb feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
cookies_serializer.rb Initial Commit 2019-08-14 15:18:44 +05:30
cors.rb feat: Allow CORS api access (#11546) 2025-05-22 10:13:15 +05:30
custom_error_codes.rb Chore: Fix failing sidekiq events for contact create (#966) 2020-06-16 19:39:57 +05:30
datadog.rb chore: Handle APM variables being empty (#6594) 2023-03-02 16:00:16 +05:30
devise_token_auth.rb chore: Increase the max concurrent number of devices (#6121) 2022-12-30 13:54:37 -08:00
devise.rb chore: Fix user email re-confirmation flow (#3581) 2021-12-16 19:32:49 +05:30
event_handlers.rb Refactor Conversation model (#134) 2019-10-12 23:38:41 +05:30
facebook_messenger.rb fix: Add delay to instagram/messenger echo events to prevent duplicate messages (#12032) 2025-07-24 21:11:02 +04:00
feature_policy.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
filter_parameter_logging.rb feat: MFA (#12290) 2025-09-18 20:19:24 +05:30
geocoder.rb fix: ip-lookup database lazy loading for all environments (#8052) 2024-10-22 23:18:30 -07:00
git_sha.rb chore: fix git_sha in instance health (#8893) 2024-02-12 14:33:15 +05:30
i18n_pluralization.rb fix(i18n): align pluralization with locale rules (#14266) 2026-04-27 15:40:00 +05:30
inflections.rb Initial Commit 2019-08-14 15:18:44 +05:30
languages.rb fix: Add Estonian to settings language options (#13936) 2026-03-29 09:44:34 +05:30
liquid_handler.rb feat: Improved password security policy (#2345) 2021-06-07 17:26:08 +05:30
lograge.rb fix: Lograge issue on non api pages (#10193) 2024-10-01 16:53:27 -07:00
mailer.rb feat: Add Amazon SES inbound email support (#12893) 2025-11-18 15:33:08 +05:30
mime_types.rb Initial Commit 2019-08-14 15:18:44 +05:30
omniauth.rb feat: SAML authentication controllers [CW-2958] (#12319) 2025-09-10 20:02:27 +05:30
permissions_policy.rb chore: Upgrade to Rails 7 (#6719) 2023-05-06 10:44:52 +05:30
rack_attack.rb feat: ensure signup verification [UPM-14] (#13858) 2026-04-07 13:45:17 +05:30
rack_profiler.rb chore: Improvements for codespace (#11667) 2025-06-04 00:21:23 -05:00
rack_timeout.rb chore: Set rack-timeout to log at ERROR level (#10400) 2024-11-11 12:35:05 -08:00
searchkick.rb feat(ee): Setup advanced, performant message search (#12193) 2025-08-28 10:10:28 +05:30
secure_password.rb feat: Improved password security policy (#2345) 2021-06-07 17:26:08 +05:30
sentry.rb fix: exclude MutexApplicationJob::LockAcquisitionError from Sentry (#13965) 2026-04-01 18:02:19 +05:30
session_store.rb chore: Use 'Lax' instead of 'None' (#1129) 2020-08-09 18:13:17 +05:30
sidekiq.rb feat: wire up auto-sync job backend [AI-150] (#14117) 2026-04-29 14:47:14 +05:30
stripe.rb chore: Add ee helper, custom_attributes to account (#5058) 2022-07-19 00:33:06 +05:30
warden_hooks.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
wrap_parameters.rb Initial Commit 2019-08-14 15:18:44 +05:30