Chatwoot/app/models
Fayaz Ahmed 9eb861a3b7
feat: Custom attributes in automations and refactor (#4548)
* Custom attributes

* Custom Attrs Manifest

* Fix dropdown values for custom attributes

* Handle edit mode for custom attributes

* Ported duplicate logic to a mixin

* fix Code climate issue

* Fix Codeclimate complexity warning

* Bug fix - Custom attributes getting duplicated

* Bug fixes and Code Climate issue fix

* Code Climate Issues Breakdown

* Fix test spec

* Add labels for Custom attributes in dropdown

* Refactor

* Refactor Automion mixin

* Refactor Mixin

* Refactor getOperator

* Fix getOperatorType

* File name method refactor

* Refactor appendNewCondition

* spec update

* Refactor methods

* Mixin Spec update

* Automation Mixins Test Specs

* Mixin Spec Rerun

* Automation validations mixin spec

* Automation helper test spec

* Send custom_attr key

* Fix spec fixtures

* fix: Changes for custom attribute type and lower case search

* fix: Specs

* fix: Specs

* fix: Ruby version change

* fix: Ruby version change

* Removes Lowercased values and fix label value in api payload

* Fix specs

* Fixed Query Spec

* Removed disabled labels if no attributes are present

* Code Climate Fixes

* fix: custom attribute with indifferent access

* fix: custom attribute with indifferent access

* Fix specs

* Minor label fix

* REtrigger circle ci build

* Update app/javascript/shared/mixins/specs/automationMixin.spec.js

* Update app/javascript/shared/mixins/specs/automationMixin.spec.js

* fix: Custom attribute case insensitivity search

* Add missing reset action method to input

* Set team_input to single select instead of multiple

* fix: remove value case check for date,boolean and number data type

* fix: cognitive complexity

* fix: cognitive complexity

* fix: Fixed activity message for automation system

* fix: Fixed activity message for automation system

* fix: Fixed activity message for automation system

* fix: codeclimate

* fix: codeclimate

* fix: action cable events for label update

* fix: codeclimate, conversation modela number of methods

* fix: codeclimate, conversation modela number of methods

* fix: codeclimate, conversation modela number of methods

* fix: codeclimate, conversation modela number of methods

* Fix margin bottom for attachment button

* Remove margin bottom to avoid conflict from macros

* Fix automation action query generator using the right key

* fix: not running message created event for activity message

* fix: not running message created event for activity message

* codeclimate fix

* codeclimate fix

* codeclimate fix

* Update app/javascript/dashboard/mixins/automations/methodsMixin.js

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>

* Update app/javascript/shared/mixins/specs/automationHelper.spec.js

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>

* Update app/javascript/dashboard/helper/automationHelper.js

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>

* Update app/javascript/dashboard/mixins/automations/methodsMixin.js

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>

Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
Co-authored-by: Tejaswini <tejaswini@chatwoot.com>
Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
Co-authored-by: Sojan Jose <sojan@pepalo.com>
Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
2022-11-10 10:53:29 +05:30
..
channel chore: Refactor Contact Inbox Builders (#5617) 2022-10-13 15:12:04 -07:00
concerns feat: Custom attributes in automations and refactor (#4548) 2022-11-10 10:53:29 +05:30
integrations chore: Update dependencies to the latest versions (#5033) 2022-07-15 09:51:59 +07:00
access_token.rb Feature: Access tokens for API access (#604) 2020-03-11 00:02:15 +05:30
account.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
account_user.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
agent_bot.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
agent_bot_inbox.rb Feature: Access tokens for API access (#604) 2020-03-11 00:02:15 +05:30
application_record.rb chore: Normalize portal slug to nil (#5487) 2022-09-22 14:08:48 -07:00
article.rb fix: Update article count in portal admin dashboard (#5647) 2022-10-21 13:43:15 -07:00
attachment.rb chore: Add missing indexes for attachments table (#5588) 2022-10-10 15:23:33 -07:00
automation_rule.rb feat: Execute macro actions, for the conversation (#5066) 2022-07-26 12:41:22 +05:30
campaign.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
canned_response.rb Annotations (#327) 2019-11-30 19:09:55 +05:30
category.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
contact.rb chore: Update dependencies to the latest versions (#5033) 2022-07-15 09:51:59 +07:00
contact_inbox.rb fix: "wa_source_id" function return value (#5451) 2022-09-29 10:34:55 -07:00
conversation.rb feat: Custom attributes in automations and refactor (#4548) 2022-11-10 10:53:29 +05:30
csat_survey_response.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
custom_attribute_definition.rb chore: Sync pre-chat fields after custom attribute update (#4692) 2022-06-20 14:16:49 +05:30
custom_filter.rb feat: Add APIs to create custom views on the dashboard (#2498) 2021-06-29 19:29:57 +05:30
dashboard_app.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
data_import.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
email_template.rb feat: Customisable Email Templates (#1095) 2020-08-06 15:21:06 +05:30
folder.rb feat: Portal endpoint (#4633) 2022-05-16 13:59:59 +05:30
inbox.rb chore: Mark conversations as pending instead of reopen when bot is present (#5751) 2022-11-02 13:54:56 -07:00
inbox_member.rb feat: Enable Capacity Config UI (#5164) 2022-08-16 16:58:23 +05:30
installation_config.rb chore: Update dependencies to the latest versions (#5033) 2022-07-15 09:51:59 +07:00
integrations.rb Feature: Slack integration (#783) 2020-06-12 23:12:47 +05:30
jsonb_attributes_length_validator.rb Fix: added validation for custom and additional attribute (#4260) 2022-03-24 15:38:28 +05:30
kbase.rb Feature: Knowledge Base APIs (#1002) 2020-09-26 02:32:34 +05:30
label.rb chore: Update dependencies to the latest versions (#5033) 2022-07-15 09:51:59 +07:00
macro.rb fix: Macros authorizations (#5779) 2022-11-07 17:46:00 -08:00
mention.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
message.rb chore: Mark conversations as pending instead of reopen when bot is present (#5751) 2022-11-02 13:54:56 -07:00
note.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
notification.rb chore: Remove unnecessary fields from notification payload (#4403) 2022-04-07 00:07:53 +05:30
notification_setting.rb fix: Specify external db with non-standard port (#2711) 2021-07-28 19:36:51 +05:30
notification_subscription.rb Chore: Firebase Cloud Messaging Support (#858) 2020-06-05 00:15:50 +05:30
platform_app.rb Chore: Replaced dependent destroy with dependent destroy_async in all models (#3249) 2021-11-18 10:32:29 +05:30
platform_app_permissible.rb fix: SuperAdmin Improvements (#3733) 2022-01-11 19:00:00 -08:00
portal.rb chore: Normalize portal slug to nil (#5487) 2022-09-22 14:08:48 -07:00
portal_member.rb feat: CRUD operation for associated articles to current article (#4912) 2022-07-04 20:29:44 +05:30
related_category.rb feat: CRUD operation for associated articles to current article (#4912) 2022-07-04 20:29:44 +05:30
reporting_event.rb fix: Add index in conversation and reporting event (#4577) 2022-04-28 16:58:06 +05:30
super_admin.rb chore: Remove message_signature_enabled from users (#3982) 2022-02-15 12:10:53 +05:30
team.rb fix: Auto populate team after assigned via API (#5250) 2022-08-12 13:40:28 +05:30
team_member.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
telegram_bot.rb Chore: Replaced dependent destroy with dependent destroy_async in all models (#3249) 2021-11-18 10:32:29 +05:30
user.rb fix: Macros authorizations (#5779) 2022-11-07 17:46:00 -08:00
webhook.rb chore: Add attachments key to message_created webhook payload (#5659) 2022-10-17 17:36:56 -07:00
working_hour.rb chore: Replace deprecated functions (#5611) 2022-10-12 14:55:59 -07:00