iachat/spec
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
..
actions chore: Ability to Disable Gravatars (#5027) 2022-07-21 19:27:12 +02:00
assets chore: Handle attachments in Whatsapp Channel (#3299) 2021-11-11 13:03:48 +05:30
builders Chore: specs for process_emails in message builder (#6379) 2023-02-02 18:36:52 +05:30
channels chore: Migrate PubSub Token to contact inbox (#3434) 2021-11-22 23:32:17 +05:30
configs chore: validation spec for schedules (#3480) 2021-11-30 21:44:30 +05:30
controllers fix: Name missing when email is collected via email hook (#6530) 2023-02-24 15:24:53 +05:30
cypress feat: fix logging levels (#4314) 2022-03-28 18:14:30 +05:30
dispatchers Non blocking event dispatch (#652) 2020-03-29 19:18:30 +05:30
drops feat: Add support for template variables in messages content (#6215) 2023-01-10 16:00:34 +05:30
enterprise fix: Update account limit selection logic (#6149) 2022-12-30 13:54:37 -08:00
factories chore: Add controllers for conversation participants (#6462) 2023-02-15 16:33:31 -08:00
finders feat: Add a view for unattended conversations (#5890) 2022-11-29 08:18:00 -08:00
fixtures Find by downcased email in SupportMailbox (#5211) 2022-10-12 13:38:18 +05:30
helpers chore: Update dependencies to the latest versions (#5033) 2022-07-15 09:51:59 +07:00
integration Fix url in emails, add frontendURL helper (#19) 2019-08-25 19:59:28 +05:30
jobs chore: Add controllers for conversation participants (#6462) 2023-02-15 16:33:31 -08:00
lib chore: Add subject to the slack message (#6404) 2023-02-06 12:42:06 -08:00
listeners fix: bots included in time to response metrics (#6409) 2023-02-25 09:48:48 +05:30
mailboxes chore: Disable email processing for suspended accounts (#5762) 2022-10-26 03:40:47 -07:00
mailers Add sender_name in the SMTP reply mails (#6528) 2023-02-24 13:20:56 +05:30
models chore: Add controllers for conversation participants (#6462) 2023-02-15 16:33:31 -08:00
policies Feature: Ability to switch between multiple accounts (#881) 2020-05-26 22:38:48 +05:30
presenters fix: Add missing timestamp in the real-time event (#6349) 2023-01-25 15:21:41 -08:00
requests/api/v1 chore: Update dependencies to the latest versions (#5033) 2022-07-15 09:51:59 +07:00
services chore: Add controllers for conversation participants (#6462) 2023-02-15 16:33:31 -08:00
support fix: check the content type for the file when uploading from cloud storage (#5378) 2022-10-21 18:05:36 -07:00
workers chore: Use "create!" and "save!" bang methods when not checking the result (#5358) 2022-09-13 17:40:06 +05:30
cypress.json chore: Cypress test case for create label flow 2021-07-23 16:38:44 +05:30
rails_helper.rb Fix performance of report builder spec (#6024) 2023-01-17 09:27:50 +05:30
spec_helper.rb chore: upgrade ruby to 3.1.3 (#5555) 2023-01-24 23:55:07 +05:30
test_helper.rb Chore: Setup test coverage in codeclimate [#332] (#333) 2019-12-02 08:57:11 +05:30