update: fixed issues where workspace template version labels were not being correctly set/got. Also updated generic server endpoints with new logic

This commit is contained in:
Andrey Melnikov
2020-08-09 13:45:24 -07:00
parent 2f5720aefc
commit c81c2d7672
5 changed files with 79 additions and 105 deletions

View File

@@ -179,13 +179,6 @@ func (s *WorkflowServer) GetWorkflowExecution(ctx context.Context, req *api.GetW
return nil, err
}
mappedLabels, err := client.GetDBLabelsMapped(v1.TypeWorkflowExecution, wf.ID)
if err != nil {
return nil, err
}
if labels, ok := mappedLabels[wf.ID]; ok {
wf.Labels = labels
}
wf.Namespace = req.Namespace
webRouter, err := client.GetWebRouter()