[#247] Filters conversation by status and paginate conversations (#284)

* [#247] Filters conversation by status

* Fixes conversation finder specs

* [#248] Paginates conversation

* Use method name in description

* Move page to default param, add filters on frontend

* Fix code climate issues
This commit is contained in:
Subin T P
2019-12-01 10:16:51 +05:30
committed by Sojan Jose
parent c08074b981
commit 84799fd0a1
13 changed files with 155 additions and 69 deletions

View File

@@ -3,7 +3,7 @@
FactoryBot.define do
factory :conversation do
status { 'open' }
display_id { SecureRandom.uuid }
display_id { rand(10_000_000) }
user_last_seen_at { Time.current }
agent_last_seen_at { Time.current }
locked { false }

View File

@@ -0,0 +1,8 @@
# frozen_string_literal: true
FactoryBot.define do
factory :inbox_member do
user
inbox
end
end