Skip to content

Put common graph saving behaviour in a function to remove label filling

Loic Huder requested to merge workflow-save into main

Each time a graph must be saved as an Ewoks workflow, the same process must be done:

  • Curate node/link data to remove default values/unspecified values
  • Enrich the react-flow nodes/links with the curated data
  • Deal with special nodes: graph inputs/outputs (calcEwoksGraphProp), note nodes calcNoteNodes
  • Convert the enriched nodes/links in ewoks nodes/links

This process was inconsistently done depending on the saving method (download, saving to server through the dialog, saving to server without dialog).

In this MR, I introduce a method prepareEwoksGraph that takes care of all this process and is called whatever the saving method. This notably allows me to remove the fallback of label to id, putting the finishing touch to the test in !387 (merged).

Edited by Loic Huder

Merge request reports

Loading