From d1e25a82aecba96cfce51fa0024f54d6cf344f49 Mon Sep 17 00:00:00 2001 From: Philip Chase Date: Wed, 23 Aug 2023 10:23:01 -0400 Subject: [PATCH 1/2] Update etl/delete_erroneous_survey_reminders.R Fix bug in collapse of ssq_ids. Fix path in cron file. --- etl/delete_erroneous_survey_reminders.R | 2 +- study_template/cron/delete_erroneous_survey_reminders | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etl/delete_erroneous_survey_reminders.R b/etl/delete_erroneous_survey_reminders.R index 8678d36..88624c9 100644 --- a/etl/delete_erroneous_survey_reminders.R +++ b/etl/delete_erroneous_survey_reminders.R @@ -69,7 +69,7 @@ if (nrow(reminders_to_deactivate) > 0) { sql_reminders_to_delete <- paste( "delete from redcap_surveys_scheduler_queue where ssq_id in (", - paste(reminders_to_deactivate$ssq_id, collapse = " "), + paste(reminders_to_deactivate$ssq_id, collapse = ","), ");" ) rows_to_be_deleted <- tbl(rc_conn, "redcap_surveys_scheduler_queue") %>% diff --git a/study_template/cron/delete_erroneous_survey_reminders b/study_template/cron/delete_erroneous_survey_reminders index f7e1c4c..cb14a7d 100644 --- a/study_template/cron/delete_erroneous_survey_reminders +++ b/study_template/cron/delete_erroneous_survey_reminders @@ -1,3 +1,3 @@ # Run delete_erroneous_survey_reminders daily. # Increase the frequency as needed to address more frequent survey reminders -# 5 7 * * * root /usr/bin/docker run --rm --env-file /rcc/example/.env redcapcustodian Rscript redcapcustodian/etl/delete_erroneous_survey_reminders.R +# 5 7 * * * root /usr/bin/docker run --rm --env-file /rcc/example/.env redcapcustodian Rscript etl/delete_erroneous_survey_reminders.R From 2610f1e277744f6c2e2d7c97915bcde12efe0509 Mon Sep 17 00:00:00 2001 From: Philip Chase Date: Thu, 24 Aug 2023 09:50:44 -0400 Subject: [PATCH 2/2] Bump VERSION and update NEWS.md for release 1.14.1 --- DESCRIPTION | 2 +- NEWS.md | 3 +++ VERSION | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index c8450b3..1b530df 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: redcapcustodian Type: Package Title: Data automation for R-centric workflows with a nod towards REDCap -Version: 1.14.0 +Version: 1.14.1 Authors@R: c( person("Philip", "Chase", email = "pbc@ufl.edu", diff --git a/NEWS.md b/NEWS.md index 77b82f8..29296b3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +# redcapcustodian 1.14.1 (released 2023-08-24) +- Update etl/delete_erroneous_survey_reminders.R (Philip Chase) + # redcapcustodian 1.14.0 (released 2023-08-14) - Fix build issues on Apple silicon (@pbchase, #133, #134) - Add delete_erroneous_survey_reminders.R (@pbchase, #131, #132) diff --git a/VERSION b/VERSION index 850e742..63e799c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.14.0 +1.14.1