iachat/app/models
Shivam Mishra 06ffaa90fc
fix: bots included in time to response metrics (#6409)
* feat: ignore bots in avg_first_response_time

* feat: ignore bots in avg_first_response count

* feat: add bot handoff event

* feat: add handoff event listener and reporting event

* fix: ignore agent bot in first response

* refactor: calculate first_response with last handoff

* refactor: method defn order

* test: new reporting events

* feat: Revert "feat: ignore bots in avg_first_response count"

This reverts commit de1977c219a2e7a9180dd02272244fe3b3f7ce89.

* feat: Revert "feat: ignore bots in avg_first_response_time"

This reverts commit bb9171945d5e3b2f6015f4f96dd1b76b3efb6987.

* fix: business hour calculation for first_reply

* fix: event_start_time for first_response

* feat: add migration to recompute first_responses

* refactor: separate mute helpers for conversation

* refactor: rename migration

* refactor: migration script

* fix: migration typo

* fix: typo in query

* feat: update schema.rb

* Revert "feat: update schema.rb"

This reverts commit 353ef355f2d956dd219907bb66982dc90ca5d896.

* feat: update schema

* refactor: update events as a batch job

* fix: ignore the event if value is negative

* feat: don't create a new hand-off if it's already present

* refactor: break the action into smaller chunks

* refactor: update reporting listener spec

Handle the case to ensure extra bot handoffs are not created for a give conversation

* fix: import error

---------

Co-authored-by: Vishnu Narayanan <vishnu@chatwoot.com>
2023-02-25 09:48:48 +05:30
..
channel chore: change the execution flow for deleting the invalid instagram story (#6313) 2023-01-23 16:23:35 +05:30
concerns fix: bots included in time to response metrics (#6409) 2023-02-25 09:48:48 +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_user.rb fix: destroy bulk service (#5921) 2022-11-25 22:46:50 +05:30
account.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
agent_bot.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
application_record.rb chore: Normalize portal slug to nil (#5487) 2022-09-22 14:08:48 -07:00
article.rb chore: Add formatting for the view count (#6447) 2023-02-13 14:29:14 -08:00
attachment.rb feat: Add the ability to receive contact(vCard) on a WhatsApp inbox (#6330) 2023-02-07 19:36:38 -08:00
automation_rule.rb Fix: automation email improvement (#6061) 2022-12-19 13:21:33 +05:30
campaign.rb feat: Allow wildcard URL in the campaigns (#6056) 2022-12-09 16:43:09 -08:00
canned_response.rb fix: order for canned response (#6400) 2023-02-06 12:53:48 -08:00
category.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
contact_inbox.rb fix: "wa_source_id" function return value (#5451) 2022-09-29 10:34:55 -07:00
contact.rb feat: Add webhook events for contact created, updated (#6415) 2023-02-13 13:28:27 -08:00
conversation_participant.rb chore: Add controllers for conversation participants (#6462) 2023-02-15 16:33:31 -08:00
conversation.rb fix: bots included in time to response metrics (#6409) 2023-02-25 09:48:48 +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 chore: upgrade ruby to 3.1.3 (#5555) 2023-01-24 23:55:07 +05:30
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_member.rb feat: Enable Capacity Config UI (#5164) 2022-08-16 16:58:23 +05:30
inbox.rb chore: Refactor the notification service for participants (#6461) 2023-02-15 14:14:56 -08:00
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 chore: Remove pagination from macros listing api (#6419) 2023-02-09 16:56:37 +05:30
mention.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
message.rb fix: bots included in time to response metrics (#6409) 2023-02-25 09:48:48 +05:30
note.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
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
notification.rb chore: Add controllers for conversation participants (#6462) 2023-02-15 16:33:31 -08:00
platform_app_permissible.rb fix: SuperAdmin Improvements (#3733) 2022-01-11 19:00:00 -08:00
platform_app.rb Chore: Replaced dependent destroy with dependent destroy_async in all models (#3249) 2021-11-18 10:32:29 +05:30
portal_member.rb feat: CRUD operation for associated articles to current article (#4912) 2022-07-04 20:29:44 +05:30
portal.rb chore: Normalize portal slug to nil (#5487) 2022-09-22 14:08:48 -07:00
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_member.rb fix: Notification page breakages (#5236) 2022-08-10 13:46:46 +02:00
team.rb fix: Auto populate team after assigned via API (#5250) 2022-08-12 13:40:28 +05:30
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 feat: Google OAuth for login & signup (#6346) 2023-02-16 11:12:02 +05:30
webhook.rb feat: Add webhook events for contact created, updated (#6415) 2023-02-13 13:28:27 -08:00
working_hour.rb chore: Replace deprecated functions (#5611) 2022-10-12 14:55:59 -07:00