From 2b1f9b72a1355db745baaa1308184236ed624e88 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Wed, 21 Aug 2024 10:46:13 -0700 Subject: [PATCH 1/2] change data retention to 7 days, 23 hours --- app/dao/jobs_dao.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dao/jobs_dao.py b/app/dao/jobs_dao.py index 81db8f19f..60ab9e70a 100644 --- a/app/dao/jobs_dao.py +++ b/app/dao/jobs_dao.py @@ -188,7 +188,7 @@ def dao_get_jobs_older_than_data_retention(notification_types): .all() ) - end_date = today - timedelta(days=7) + end_date = today - timedelta(days=7, hours=23) for notification_type in notification_types: services_with_data_retention = [ x.service_id From 030a9b5daad496a9a41e7f3a14ad47c7864c8010 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Wed, 21 Aug 2024 10:59:49 -0700 Subject: [PATCH 2/2] add documentation on search tags --- app/dao/jobs_dao.py | 1 + docs/all.md | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/app/dao/jobs_dao.py b/app/dao/jobs_dao.py index 60ab9e70a..f4914e423 100644 --- a/app/dao/jobs_dao.py +++ b/app/dao/jobs_dao.py @@ -188,6 +188,7 @@ def dao_get_jobs_older_than_data_retention(notification_types): .all() ) + # notify-api-1287, make default data retention 7 days, 23 hours end_date = today - timedelta(days=7, hours=23) for notification_type in notification_types: services_with_data_retention = [ diff --git a/docs/all.md b/docs/all.md index fa3f6de03..04d78b1c6 100644 --- a/docs/all.md +++ b/docs/all.md @@ -1425,3 +1425,12 @@ For application 'notify-api-sandbox': Service instance 'notify-api-rds-sandbox' ``` Run `cf target -o gsa-tts-benefits-studio -s notify-sandbox` before pushing to the Sandbox + +### Searchable tags for 'hot' items + +Note: better to search on space 'notify-production' rather than specifically for admin or api + +#notify-admin-1200 (job cache regeneration) +#notify-admin-1505 (general login issues) +#notify-admin-1701 (wrong sender phone number) +#notify-admin-1859 (job is created with created_at being the wrong time)