Skip to content

Commit

Permalink
Update push_priority_appeals_to_judges_job.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
zurbergram committed Apr 18, 2023
1 parent e8d8e28 commit 802be92
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/jobs/push_priority_appeals_to_judges_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def slack_report
docket_coordinator.dockets.each_pair do |sym, docket|
report << "*Number of #{sym} appeals _not_ distributed*: #{docket.count(priority: true, ready: true)}"
end
report << "*Number of Legacy Hearing Non Genpop appeals _not_ distributed*: #{legacy_not_genpop_count}"
unless disable_legacy?
report << "*Number of Legacy Hearing Non Genpop appeals _not_ distributed*: #{legacy_not_genpop_count}"
end

report << ""
report << "*Debugging information*"
Expand Down Expand Up @@ -179,6 +181,10 @@ def use_by_docket_date?
FeatureToggle.enabled?(:acd_distribute_by_docket_date, user: RequestStore.store[:current_user])
end

def disable_legacy?
FeatureToggle.enabled?(:acd_disable_legacy_distributions, user: RequestStore.store[:current_user])
end

def legacy_not_genpop_count
docket_coordinator.dockets[:legacy].not_genpop_priority_count
end
Expand Down

0 comments on commit 802be92

Please sign in to comment.