cubimedrub / macworp

A web interface for Nextflow
16 stars 8 forks source link

decouple workflow selection and selected params from project #23

Open di-hardt opened 1 week ago

di-hardt commented 1 week ago

A projects keeps a reference to the selected workflow and saves the entered workflow parameter. This is a relic from the time when each rendered result file needed to be defined in the workflow definition. ToDos to decouple:

  1. Stop saving a reference to the workflow and entered parameters when scheduling a workflow (backend: project controller)
  2. Remove reference to workflow and parameters from project model (backend: mode and migration)
  3. Relocate workflow tab in project view into modal which is shown when a workflow is scheduled (frontend)
  4. Once the user entered all params, the workflow can be scheduled via a button in the modal (frontend)
  5. Create and queue an instance of QueuedProject and lock the project (backend: project controller)
  6. In addition save the entered params as JSON in a special folder in the project directory, e.g. .macworp_cache/<sanitized_workflow>.history.json
  7. Add an endpoint which can return the parameter from the history file from step 6
  8. When the user is selecting the same workflow again put get the old params and put them into the form