boomerang-io / community

The Boomerang community, roadmap, planning, and architecture repository. The central place for information on joining, contributing, and governance.
https://useboomerang.io
Apache License 2.0
11 stars 0 forks source link

Unable to update system workflows #292

Closed amhudson closed 2 years ago

amhudson commented 2 years ago

Describe the bug

For POST /workflow/workflow//{workFlowId}/revision and POST /workflow/workflow/{workFlowId}/available-parameters, the UI is sending a payload similar to the following:

{ "dag": {}, "config": { "nodes": [ { "inputs": { "output": "", "taskName": "", "value": "", "outputs": [] }, "nodeId": "", "taskId": "", "type": "", "taskVersion": 1, "outputs": [] } ] }, "changelog": {} }

where outputs array is nested within as well as on the same level as the inputs object. The proper payload should be similar to

{ "dag": {}, "config": { "nodes": [ { "inputs": { "output": "", "taskName": "", "value": "" }, "nodeId": "", "taskId": "", "type": "", "taskVersion": 1, "outputs": [] } ] }, "changelog": {} } where outputs is only provided on the same level as inputs

What project does this issue relate to?

Boomerang Flow

To Reproduce

  1. Create a system workflow and save
  2. Try to update and save a revision to the workflow, 400 Bad Request response recieved

Environment

No response

Additional Contenxt

No response

tlawrie commented 2 years ago

Issues resolved and verified