From 802be92d87669b2cc6dc89d0d74178a89e4fc3e8 Mon Sep 17 00:00:00 2001 From: Matt Roth Date: Tue, 18 Apr 2023 10:54:24 -0400 Subject: [PATCH] Update push_priority_appeals_to_judges_job.rb --- app/jobs/push_priority_appeals_to_judges_job.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/jobs/push_priority_appeals_to_judges_job.rb b/app/jobs/push_priority_appeals_to_judges_job.rb index 40b750a5084..bdb2ccc2363 100644 --- a/app/jobs/push_priority_appeals_to_judges_job.rb +++ b/app/jobs/push_priority_appeals_to_judges_job.rb @@ -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*" @@ -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