iachat/app/models/concerns
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
..
.keep Initial Commit 2019-08-14 15:18:44 +05:30
access_tokenable.rb Chore: Replaced dependent destroy with dependent destroy_async in all models (#3249) 2021-11-18 10:32:29 +05:30
activity_message_handler.rb feat: Adds automation view for assigning an agent (#6131) 2023-01-10 11:35:56 +05:30
assignment_handler.rb chore: Add controllers for conversation participants (#6462) 2023-02-15 16:33:31 -08:00
auto_assignment_handler.rb feat: Enable Capacity Config UI (#5164) 2022-08-16 16:58:23 +05:30
availability_statusable.rb chore: Move agent availability to Account level (#3074) 2021-10-07 13:21:46 +05:30
avatarable.rb chore: Ability to Disable Gravatars (#5027) 2022-07-21 19:27:12 +02:00
channelable.rb feat: Add agent_reply_time_window in API channels (#4857) 2022-06-14 18:05:37 +05:30
content_attribute_validator.rb chore: Upgrade rails and ruby versions (#2400) 2021-08-03 20:11:52 +05:30
conversation_mute_helpers.rb fix: bots included in time to response metrics (#6409) 2023-02-25 09:48:48 +05:30
featurable.rb fix: Update enabled_features logic to fix superadmin edit action (#5959) 2022-12-14 18:24:02 -08:00
labelable.rb feat: Save automation rules (#3359) 2022-01-10 12:41:59 +05:30
liquidable.rb fix: Stop processing broken liquid tags (#6236) 2023-01-11 17:41:02 +05:30
message_filter_helpers.rb chore: Refactor the notification service for participants (#6461) 2023-02-15 14:14:56 -08:00
out_of_offisable.rb Fix: add option to choose 24 hour working slot (#4018) 2022-02-22 01:28:49 -08:00
pubsubable.rb chore: Migrate PubSub Token to contact inbox (#3434) 2021-11-22 23:32:17 +05:30
reauthorizable.rb chore: Add reauthorization prompt for Whatsapp Channel (#5929) 2022-11-24 14:50:32 +03:00
reportable.rb Chore: clean up Reporting Events (#4044) 2022-02-28 18:16:12 +05:30
sort_handler.rb fix: last incoming message sort (#4972) 2022-07-06 00:37:43 +05:30
sso_authenticatable.rb feat: Ability for super admin to impersonate a user (#6382) 2023-02-06 11:00:08 -08:00
user_attribute_helpers.rb chore: Add controllers for conversation participants (#6462) 2023-02-15 16:33:31 -08:00