From 1db72e07cf55bf361d672d1d1dee9a565ff2b552 Mon Sep 17 00:00:00 2001 From: Pranav Anbarasu Date: Thu, 9 Nov 2023 21:08:44 +0000 Subject: [PATCH] Use latest commit hash for provenance --- deidentification.R | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deidentification.R b/deidentification.R index f058380..fb28834 100644 --- a/deidentification.R +++ b/deidentification.R @@ -118,8 +118,8 @@ for (i in seq_along(deidentified_results$values_to_review)) { } # Index each file in Synapse -# latest_commit <- gh::gh("/repos/:owner/:repo/commits/main", owner = "Sage-Bionetworks", repo = "recover-parquet-external") -# latest_commit_tree_url <- latest_commit$html_url %>% stringr::str_replace("commit", "tree") +latest_commit <- gh::gh("/repos/:owner/:repo/commits/main", owner = "Sage-Bionetworks", repo = "recover-parquet-external") +latest_commit_tree_url <- latest_commit$html_url %>% stringr::str_replace("commit", "tree") for (i in seq_along(list.files('./dictionaries/new_to_review/'))) { synStore(File(path = list.files('./dictionaries/new_to_review/', full.names = T)[i], @@ -128,7 +128,7 @@ for (i in seq_along(list.files('./dictionaries/new_to_review/'))) { activityDescription = "Indexing files containing PII values to review", used = c((synGetChildren('syn52316269') %>% as.list())[[i]]$id, synFindEntityId(names(deidentified_results$deidentified_datasets)[i], - parent = PARQUET_FOLDER_INTERNAL)) - # executed = latest_commit_tree_url - ) + parent = PARQUET_FOLDER_INTERNAL)), + executed = latest_commit_tree_url + ) }