chore: Add assigned option to conversation finder API (#2630)

- Adds the ability to filter all the conversations which are assigned
- Add rack timeout gem
- Remove size attribute from Sidekiq config
This commit is contained in:
Sojan Jose
2021-07-14 22:51:27 +05:30
committed by GitHub
parent 3d18ec9e40
commit d7982a6ffd
12 changed files with 153 additions and 70 deletions

View File

@@ -73,6 +73,8 @@ class ConversationFinder
@conversations = @conversations.assigned_to(current_user)
when 'unassigned'
@conversations = @conversations.unassigned
when 'assigned'
@conversations = @conversations.where.not(assignee_id: nil)
end
@conversations
end