feat: Updated cron to return the active parameters

This commit is contained in:
Andrey Melnikov
2020-03-31 19:20:55 -07:00
parent 648ad4b694
commit 3fe93a64c9
12 changed files with 317 additions and 55 deletions

View File

@@ -39,6 +39,13 @@ func apiCronWorkflow(cwf *v1.CronWorkflow) (cronWorkflow *api.CronWorkflow) {
if cwf.WorkflowExecution != nil {
cronWorkflow.WorkflowExecution = GenApiWorkflowExecution(cwf.WorkflowExecution)
for _, param := range cwf.WorkflowExecution.Parameters {
convertedParam := &api.WorkflowExecutionParameter{
Name: param.Name,
Value: *param.Value,
}
cronWorkflow.WorkflowExecution.Parameters = append(cronWorkflow.WorkflowExecution.Parameters, convertedParam)
}
}
return