update: Updated GetWorkflowExecution request to also get information for the workflow template, since we query for it anyway.

This commit is contained in:
Andrey Melnikov
2020-05-21 15:13:26 -07:00
parent 1daca92c3e
commit ea5d4d56fb

View File

@@ -551,6 +551,8 @@ func (c *Client) GetWorkflowExecution(namespace, uid string) (workflow *Workflow
workflow = &WorkflowExecution{}
query, args, err := sb.Select(getWorkflowExecutionColumns("we", "")...).
Columns(getWorkflowTemplateColumns("wt", "workflow_template")...).
Columns(`wtv.manifest "workflow_template.manifest"`).
From("workflow_executions we").
Join("workflow_template_versions wtv ON wtv.id = we.workflow_template_version_id").
Join("workflow_templates wt ON wt.id = wtv.workflow_template_id").
@@ -600,7 +602,6 @@ func (c *Client) GetWorkflowExecution(namespace, uid string) (workflow *Workflow
return nil, util.NewUserError(codes.NotFound, "Cannot get Workflow Template.")
}
// TODO: Do we need to parse parameters into workflow.Parameters?
manifest, err := json.Marshal(wf)
if err != nil {
log.WithFields(log.Fields{