Sojan Jose
f6d7f3b665
fix: assignee_changed callback not getting triggered during conversation creation ( #9334 )
...
The reload method in our callback was refreshing the object and hence the saved_change_to_assignee_id? Method wasn't working in the following callbacks.
This impacted the listeners subscribing to the event `ASSIGNEE_CHANGE`, `TEAM_CHANGE` etc
2024-05-06 11:48:17 -07:00
Shivam Mishra
9a1c54a82d
feat: disable automation rules if condition fails multiple times ( #9017 )
...
* feat: add email for disabling automation rule
* feat: disable automation rules and notify admin
* feat: reset error count after update
* feat: trigger invalid_condition_error if rule is invalid
* feat: setup error trackable concern
* refactor: use ErrorTrackable in Reauthorizable
* fix: optional argument
* feat: separate reauthorization_required_key
* test: update case to use ERROR_TRACKABLE_COUNT
* Revert "test: update case to use ERROR_TRACKABLE_COUNT"
This reverts commit f439847147556a02759a7597a7fcf1d66091cafc.
* Revert "feat: separate reauthorization_required_key"
This reverts commit f4514fce217b0a2f2c2bf701a15de0a8b47acbc4.
* Revert "fix: optional argument"
This reverts commit 93b4194ec3f10f67e2402388c966c071c4d3b4fd.
* Revert "refactor: use ErrorTrackable in Reauthorizable"
This reverts commit 513c2a522bc782e73ea4b0f5ae34ce01e70e042c.
* Revert "feat: setup error trackable concern"
This reverts commit 278683060cf422f60af5d5c77100aa5272141141.
* feat: use reauthorizable for automation rule
* feat: remove redis key
* test: fix method names
* chore: refactor
---------
Co-authored-by: Vishnu Narayanan <iamwishnu@gmail.com >
Co-authored-by: Sojan <sojan@pepalo.com >
2024-03-28 13:14:16 +05:30
Shivam Mishra
3ed80fa867
feat: expiry for cache keys [CW-3038] ( #8793 )
...
* feat: set cache keys for 3 days only
* feat: invalidate should set the latest timestamp
* refactor: cache_keys concern
* remove invalidate_cache method
* refactor reset to set to new value instead of delete
* ensure only one event is dispatched
* feat: set expiry to 24 hours
* chore: make expiry 48 hours
* feat: include destroy event
* feat: set expiry to 72 days
* fix: typo
* test: cache update after `touch`
* test: update cache keys
* refactor: remove after_touch, it's already handled in commit
2024-01-29 15:27:26 +05:30
Pranav Raj S
890515edfd
feat(perf): Cache labels on the conversation model ( #8527 )
2023-12-11 18:27:55 -08:00
Muhsin Keloth
b1a68759cf
feat: Add the support for custom attributes in message variables ( #8511 )
2023-12-08 14:13:35 -08:00
Shivam Mishra
f1a77ba934
feat: allow superadmins to reset cache keys for IndexedDB ( #7180 )
...
Allows super admins to reset the cache for an account. This will force the front end to fetch the data again on the next load.
fixes: https://linear.app/chatwoot/issue/CW-1817
Co-authored-by: Sojan <sojan@pepalo.com >
2023-05-29 23:05:17 +05:30
Shivam Mishra
5600b518ac
fix: validate template_params for WhatsApp ( #6881 )
...
- Add JsonSchemaValidator, which takes a declarative schema and validates it for a given property.
- Add specs for JsonSchemaValidator
- Enable the validator for template_params
2023-04-25 16:50:36 +05:30
Sojan Jose
7e3a4d2c20
fix: Adds assignee as a participant during auto-assign ( #6789 )
...
- Ensures that the assignee is added as a participant during auto-assign
2023-03-30 11:39:53 +05:30
Muhsin Keloth
5b7bed9640
chore: Auto capitalize the name field while sending the canned response/variables ( #6758 )
...
* capitalize name before sending the message
* Fix specs
* Code cleanups
2023-03-27 18:49:48 +05:30
Pranav Raj S
7044eda281
chore: Add controllers for conversation participants ( #6462 )
...
Co-authored-by: Aswin Dev P.S <aswindevps@gmail.com >
Co-authored-by: Sojan Jose <sojan@chatwoot.com >
2023-02-15 16:33:31 -08:00
Sojan Jose
ad782e450e
fix: Stop processing broken liquid tags ( #6236 )
2023-01-11 17:41:02 +05:30
Muhsin Keloth
078ff615ee
feat: Add support for template variables in messages content ( #6215 )
...
Fixes : #6078
Co-authored-by: Sojan <sojan@pepalo.com >
2023-01-10 16:00:34 +05:30
Sojan Jose
2ecb2ca0f0
feat: Enable Capacity Config UI ( #5164 )
...
- Enables Capacity Config in UI
- Rewrite auto assignment Logic to consider only online agents
fixes : #4990
2022-08-16 16:58:23 +05:30
Sojan Jose
6a6a37a67b
chore: Ability to Disable Gravatars ( #5027 )
...
fixes : #3853
- Introduced DISABLE_GRAVATAR Global Config, which will stop chatwoot from making API requests to gravatar
- Cleaned up avatar-related logic and centralized it into the avatarable concern
- Added specs for the missing cases
- Added migration for existing installations to move the avatar to attachment, rather than making the API that results in 404.
2022-07-21 19:27:12 +02:00
Sojan Jose
4187428729
chore: Update dependencies to the latest versions ( #5033 )
2022-07-15 09:51:59 +07:00
Sojan Jose
ab05dd9b9b
chore: Improve the reauthorization requirement for Email Channel ( #4753 )
2022-05-26 20:23:00 +05:30
Sojan Jose
577e9905c6
chore: Fix issue with conversation assignment notifications ( #3661 )
...
- fixes issues with conversation assignment notifications not working in certain cases
2021-12-28 21:53:13 +05:30
Sojan Jose
009abc1948
chore: API improvements ( #3637 )
...
- Unique validations for Inbox members and Team member objects
- Move notification processing to Async
2021-12-21 22:48:01 +05:30
Sojan Jose
d78cb67a2a
chore: Fix conversation status in webhooks ( #3364 )
...
- fix the wrong conversation status being sent in webhooks
- additional information in websocket events
- refactor activity messaging code
- move activity message generation to background job to stop the callback loop
2021-11-12 16:17:59 +05:30
Sojan Jose
2890339734
chore: Limit objects returned by conversation API ( #2721 )
2021-07-31 21:19:42 +05:30
Sojan Jose
a7ca55c080
chore: Change the conversation bot status to pending ( #2677 )
...
fixes : #2649
2021-07-21 22:02:43 +05:30
Sojan Jose
42e83de5b0
feat: Activity messages for team assignments ( #1893 )
...
- assignment messages when the conversation team is changed
- change assignee based on team
- move round-robin and assignee logic to concerns
2021-03-12 15:13:58 +05:30
Sojan Jose
0e721653e5
feat: Business hour Inbox APIs ( #1821 )
...
* feat: Business hour Inbox APIs
2021-02-23 12:11:15 +05:30
Sojan Jose
7542330d61
feat: Add Platform APIs ( #1456 )
2021-01-14 20:35:22 +05:30
Adam Zysko
65ed4c78a4
feat: Business hours
...
Data models and APIs for business hours
ref: #234
2020-11-01 00:14:33 +05:30
Sojan Jose
b862817b29
feat: Enable reauthorization for Facebook ( #1286 )
2020-09-30 01:12:32 +05:30