esciencecenter-digital-skills / training-infrastructure

collection of files used in setting up the new training infrastructure
Apache License 2.0
0 stars 0 forks source link

separate workflow into components #15

Closed bvreede closed 1 year ago

bvreede commented 2 years ago

At the moment, files get created and uploaded in the same loop as channels are created. It would be useful to separate the different elements of the workflow, so that errors in one do not cause problems for other aspects, and elements can be tested (i.e. it can be verified that they have been executed correctly).

liekelotte commented 2 years ago

Specifically, the stages should be:

bvreede commented 2 years ago

Steps should be in three phases:

  1. Check if all necessary elements for the step are present;
  2. Do the step
  3. Check if the step is correctly executed
liekelotte commented 2 years ago

for 7, 8, and 12: creating two functions: create_data_file and upload_docs. the latter will have a flexible argument indicating which docs (i.e. upload_docs(slug, comms = TRUE, debriefing = TRUE, planning = TRUE, data = TRUE))