From 59c36226b7a5ad2ae2f62442c9ea2614f6f9981d Mon Sep 17 00:00:00 2001 From: Mark Botterill Date: Wed, 8 May 2024 11:07:54 +0000 Subject: [PATCH 1/3] Change message format --- backend/scripts/send_slack_report/send_slack_report.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/scripts/send_slack_report/send_slack_report.py b/backend/scripts/send_slack_report/send_slack_report.py index 6c6d68e8e51..4db31f8effc 100755 --- a/backend/scripts/send_slack_report/send_slack_report.py +++ b/backend/scripts/send_slack_report/send_slack_report.py @@ -97,8 +97,7 @@ def classify_initial_queries(): total_initial_queries = sum(tally_json.values()) for k, v in tally_json.items(): percentage = v / total_initial_queries * 100 - classifications += f"There were {v} queries (representing {percentage:.1f}% of\ - all initial queries) about {k}\n" + classifications += f"{k}: {v} queries ({percentage:.1f}%\n" return classifications From 26b154e1498e8fdd5cf6133d53dfc7168262c88b Mon Sep 17 00:00:00 2001 From: Mark Botterill Date: Wed, 8 May 2024 11:19:39 +0000 Subject: [PATCH 2/3] Mirror prod --- backend/scripts/send_slack_report/send_slack_report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/scripts/send_slack_report/send_slack_report.py b/backend/scripts/send_slack_report/send_slack_report.py index 4db31f8effc..f08be3c1959 100755 --- a/backend/scripts/send_slack_report/send_slack_report.py +++ b/backend/scripts/send_slack_report/send_slack_report.py @@ -97,7 +97,7 @@ def classify_initial_queries(): total_initial_queries = sum(tally_json.values()) for k, v in tally_json.items(): percentage = v / total_initial_queries * 100 - classifications += f"{k}: {v} queries ({percentage:.1f}%\n" + classifications += f"{k}: {v} queries ({percentage:.1f}%)\n" return classifications From 967038ac9e651e1923e658fa8f93276a25a89d34 Mon Sep 17 00:00:00 2001 From: Mark Botterill <97025274+markbotterill@users.noreply.github.com> Date: Fri, 10 May 2024 13:13:38 +0100 Subject: [PATCH 3/3] Only send weekly --- .github/workflows/send-slack-metrics.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/send-slack-metrics.yml b/.github/workflows/send-slack-metrics.yml index 0b571aa2f95..4cdd81e8654 100644 --- a/.github/workflows/send-slack-metrics.yml +++ b/.github/workflows/send-slack-metrics.yml @@ -2,7 +2,7 @@ name: Send Slack Metrics # NB This only works on the default (prod) branch on: schedule: - - cron: '0 12 * * *' + - cron: '0 9 * * 5' jobs: deploy: