Skip to content

fix: Save workflow error when updating with parameters#961

Merged
amanda11 merged 3 commits into
StackStorm:masterfrom
JazzyMichael:fix-save-workflow-params
Mar 14, 2022
Merged

fix: Save workflow error when updating with parameters#961
amanda11 merged 3 commits into
StackStorm:masterfrom
JazzyMichael:fix-save-workflow-params

Conversation

@JazzyMichael

Copy link
Copy Markdown
Contributor

Fixes issue 862

Saving a workflow immediately after creating and running it causes a 400 HTTP response code for a bad request. There is an extra property in the PUT request body that is not supported by the API. Finer details and replication steps can be found within the issue. These changes removes the _name property from the request body, resulting in a successful "save".

This also fixes some react errors regarding ref; it cannot be used for function components, and the _details variable is not defined either.

React Error Example (when loading multiple pages):
Screen Shot 2022-02-28 at 10 14 37 AM

@amanda11

amanda11 commented Mar 8, 2022

Copy link
Copy Markdown
Contributor

This looks great to me, just needs a rebase to pick up latest from master.

I would like to give the changes a try before approval- hope to take it for spin later in week (unless someone else gets to review earlier than that).

@amanda11 amanda11 added this to the 3.7.0 milestone Mar 10, 2022

@amanda11 amanda11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, this looks great and fixed the original issue I raised.

Could you please do a rebase, and then we should be able to merge this in for the next release.

Many thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants