mc2-center / minidream-r-env

Resources for setting up and managing an RStudio environment for interactive mini-DREAM activities
Apache License 2.0
3 stars 1 forks source link

Clean Synapse submission folders #5

Closed milen-sage closed 3 years ago

milen-sage commented 3 years ago

Remove previous course content here.

lopierra commented 3 years ago

@milen-sage should I delete everything in all of the folders besides Submissions? (Activities, Data, Presentations, etc.)

And is there a way to delete everything in a folder, either on the website or using {synapser}? Or would it be easier to just delete all the folders, and then re-create the empty folder structure from scratch?

lopierra commented 3 years ago

Steps to delete files in bulk:

  1. Make a File View on Synapse that is scoped to the Submissions, Activities, Challenge Certification, Presentations, and Resources folders (basically everything except Data)
  2. Download the File View using list_of_files_to_delete <- read_csv(synTableQuery(sprintf("SELECT * FROM syn25828643", "syn25828643"))$filepath)
  3. Delete the files using purrr::walk(list_of_files_to_delete$id, synDelete)
milen-sage commented 3 years ago

@BrunoGrandePhD when updating the submission folders on the docker-side here are the module submission folders for this year: https://www.synapse.org/#!Synapse:syn25653271

BrunoGrandePhD commented 3 years ago

@milen-sage: I noticed that the submission_helpers.R script doesn't reference module 6 even though a folder exists on Synapse. Is this expected? I'm going to update the Synapse IDs for modules 0–5 and 7 for now.

BrunoGrandePhD commented 3 years ago

I'm closing this issue for now though since I did update the Synapse IDs that were there.