Skip to content

Commit

Permalink
Merge pull request #109 from boomerang-io/fix-292-postWorkflowPayload
Browse files Browse the repository at this point in the history
fix: payload for workflow revision and available params
  • Loading branch information
marcusdroy authored Nov 17, 2021
2 parents cf952a4 + 97de62c commit 2fb1d64
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions src/ApiServer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ export function startApiServer({ environment = "test", timing = 0 } = {}) {
});

this.get(serviceUrl.workflowAvailableParameters({ workflowId: ":workflowId" }), (schema) => {
// return schema.availableParameters.all();
return [];
return schema.db.availableParameters[0].data;
});

this.get(serviceUrl.workflowTemplates(), (schema, request) => {
Expand Down Expand Up @@ -298,9 +297,9 @@ export function startApiServer({ environment = "test", timing = 0 } = {}) {
//Workflow Config Cron

this.get(`${BASE_URL}/workflow/validate/cron`, () => {
return({
valid:true,
});
return {
valid: true,
};
});

// Workflow Properties
Expand Down
2 changes: 1 addition & 1 deletion src/Components/WorkflowTaskForm/WorkflowTaskForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class WorkflowTaskForm extends Component {
.required("Enter a task name")
.notOneOf(takenTaskNames, "Enter a unique value for task name"),
})}
initialValues={{ taskName: node.taskName, ...nodeConfig.inputs, outputs: taskResults }}
initialValues={{ taskName: node.taskName, ...nodeConfig.inputs }}
inputs={inputs}
onSubmit={this.handleOnSave}
dataDrivenInputProps={{
Expand Down

0 comments on commit 2fb1d64

Please sign in to comment.