update/fix: fixed issue where parameters were not being sent with API response.

Fixed issue where cron workflows did not apply their labels to the newly created workflow executions.
This commit is contained in:
Andrey Melnikov
2020-05-06 15:39:55 -07:00
parent c64954562b
commit 872ed2d9af
4 changed files with 118 additions and 3 deletions

View File

@@ -49,6 +49,15 @@ func apiWorkflowExecution(wf *v1.WorkflowExecution) (workflow *api.WorkflowExecu
workflow.WorkflowTemplate = apiWorkflowTemplate(wf.WorkflowTemplate)
}
if wf.ParametersBytes != nil {
parameters, err := wf.LoadParametersFromBytes()
if err != nil {
return nil
}
workflow.Parameters = converter.ParametersToAPI(parameters)
}
return
}