Skip to content

Commit

Permalink
Keep correspondence tasks from bugging out the queue table (#20409)
Browse files Browse the repository at this point in the history
Co-authored-by: HunJerBAH <99915461+HunJerBAH@users.noreply.github.com>
  • Loading branch information
wmedders21 and HunJerBAH authored Jan 4, 2024
1 parent 29c3577 commit 5ea9eba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/models/task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ class << self; undef_method :open; end

scope :with_assignees, -> { joins(Task.joins_with_assignees_clause) }

scope :not_correspondence, -> { where.not(appeal_type: "Correspondence") }

scope :with_assigners, -> { joins(Task.joins_with_assigners_clause) }

scope :with_cached_appeals, -> { joins(Task.joins_with_cached_appeals_clause) }
Expand Down
2 changes: 1 addition & 1 deletion app/models/task_pager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize(args)

def paged_tasks
@paged_tasks ||= begin
tasks = sorted_tasks(filtered_tasks)
tasks = sorted_tasks(filtered_tasks).not_correspondence
pagination_enabled ? tasks.page(page).per(TASKS_PER_PAGE) : tasks
end
end
Expand Down

0 comments on commit 5ea9eba

Please sign in to comment.