From 84a1b771f262629f9e976335f55cd7fe1e113b33 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Thu, 17 Oct 2024 20:34:30 -0500 Subject: [PATCH 1/3] tidy ref #542 --- tests/test-all.R | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/test-all.R b/tests/test-all.R index 5fb4d7df..32ba90dc 100644 --- a/tests/test-all.R +++ b/tests/test-all.R @@ -1,11 +1,13 @@ # Modeled after the R6 testing structure: https://github.com/wch/R6/blob/master/tests/testthat.R library(testthat) library(REDCapR) +# source("R/helpers-testing.R") -Sys.setenv("redcapr_test_server" = "dev-2") # Sys.setenv("redcapr_test_server" = "bbmc") - +Sys.setenv("redcapr_test_server" = "dev-2") message("Using test server '", Sys.getenv("redcapr_test_server"), "'.") - -# source("R/helpers-testing.R") testthat::test_check("REDCapR") + +# Sys.setenv("redcapr_test_server" = "bbmc") +# message("Using test server '", Sys.getenv("redcapr_test_server"), "'.") +# testthat::test_check("REDCapR") From 6d4f4914d4a89659d801f772c8d4f003d20f9430 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Thu, 17 Oct 2024 21:08:34 -0500 Subject: [PATCH 2/3] standardize plugin titles ref #542 --- inst/misc/plugin-redirection.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/inst/misc/plugin-redirection.yml b/inst/misc/plugin-redirection.yml index 0aeb5d5a..1d8455af 100644 --- a/inst/misc/plugin-redirection.yml +++ b/inst/misc/plugin-redirection.yml @@ -1,15 +1,15 @@ - instance: bbmc plugins: - - delete_simple : "https://bbmc.ouhsc.edu/redcap/plugins/redcapr/delete_redcapr_simple.php" - - delete_arm_single : "https://bbmc.ouhsc.edu/redcap/plugins/redcapr/delete_redcapr_delete_single_arm.php" - - delete_arm_multiple : "https://bbmc.ouhsc.edu/redcap/plugins/redcapr/delete_redcapr_delete_multiple_arm.php" - - delete_dag : "https://bbmc.ouhsc.edu/redcap/plugins/redcapr/delete_redcapr_dag_write.php" + - delete_simple : "https://bbmc.ouhsc.edu/redcap/plugins/redcapr/wipe-project-redcapr-simple.php" + - delete_arm_single : "https://bbmc.ouhsc.edu/redcap/plugins/redcapr/wipe-project-redcapr-arm-delete-single.php" + - delete_arm_multiple : "https://bbmc.ouhsc.edu/redcap/plugins/redcapr/wipe-project-redcapr-arm-delete-multiple.php" + - delete_dag : "https://bbmc.ouhsc.edu/redcap/plugins/redcapr/wipe-project-redcapr-dag-write.php" - instance: dev-2 plugins: - - delete_simple : "https://redcap-dev-2.ouhsc.edu/redcap/plugins/redcapr/delete_redcapr_simple.php" - - delete_arm_single : "https://redcap-dev-2.ouhsc.edu/redcap/plugins/redcapr/delete_redcapr_delete_single_arm.php" - - delete_arm_multiple : "https://redcap-dev-2.ouhsc.edu/redcap/plugins/redcapr/delete_redcapr_delete_multiple_arm.php" - - delete_dag : "https://redcap-dev-2.ouhsc.edu/redcap/plugins/redcapr/delete_redcapr_dag_write.php" + - delete_simple : "https://redcap-dev-2.ouhsc.edu/redcap/plugins/redcapr/wipe-project-redcapr-simple.php" + - delete_arm_single : "https://redcap-dev-2.ouhsc.edu/redcap/plugins/redcapr/wipe-project-redcapr-arm-delete-single.php" + - delete_arm_multiple : "https://redcap-dev-2.ouhsc.edu/redcap/plugins/redcapr/wipe-project-redcapr-arm-delete-multiple.php" + - delete_dag : "https://redcap-dev-2.ouhsc.edu/redcap/plugins/redcapr/wipe-project-redcapr-dag-write.php" From a367d9a2aea13ad3f41b1ad0fdaa678a7e9631b2 Mon Sep 17 00:00:00 2001 From: Will Beasley Date: Thu, 17 Oct 2024 21:17:59 -0500 Subject: [PATCH 3/3] standardize example plugins ref #542 --- ...tiple-arm.php => wipe-project-redcapr-arm-delete-multiple.php} | 0 ...-single-arm.php => wipe-project-redcapr-arm-delete-single.php} | 0 .../{wipe-project-dag.php => wipe-project-redcapr-dag-write.php} | 0 .../{wipe-project-simple.php => wipe-project-redcapr-simple.php} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename utility/plugins/{wipe-project-delete-multiple-arm.php => wipe-project-redcapr-arm-delete-multiple.php} (100%) rename utility/plugins/{wipe-project-delete-single-arm.php => wipe-project-redcapr-arm-delete-single.php} (100%) rename utility/plugins/{wipe-project-dag.php => wipe-project-redcapr-dag-write.php} (100%) rename utility/plugins/{wipe-project-simple.php => wipe-project-redcapr-simple.php} (100%) diff --git a/utility/plugins/wipe-project-delete-multiple-arm.php b/utility/plugins/wipe-project-redcapr-arm-delete-multiple.php similarity index 100% rename from utility/plugins/wipe-project-delete-multiple-arm.php rename to utility/plugins/wipe-project-redcapr-arm-delete-multiple.php diff --git a/utility/plugins/wipe-project-delete-single-arm.php b/utility/plugins/wipe-project-redcapr-arm-delete-single.php similarity index 100% rename from utility/plugins/wipe-project-delete-single-arm.php rename to utility/plugins/wipe-project-redcapr-arm-delete-single.php diff --git a/utility/plugins/wipe-project-dag.php b/utility/plugins/wipe-project-redcapr-dag-write.php similarity index 100% rename from utility/plugins/wipe-project-dag.php rename to utility/plugins/wipe-project-redcapr-dag-write.php diff --git a/utility/plugins/wipe-project-simple.php b/utility/plugins/wipe-project-redcapr-simple.php similarity index 100% rename from utility/plugins/wipe-project-simple.php rename to utility/plugins/wipe-project-redcapr-simple.php