Updated ListWorkflows to filter by workflow template version

This commit is contained in:
Andrey Melnikov
2020-01-24 11:41:21 -08:00
parent 2312aeee04
commit f2ed4833b2
5 changed files with 81 additions and 59 deletions

View File

@@ -131,7 +131,7 @@ func (s *WorkflowServer) GetWorkflowLogs(req *api.GetWorkflowLogsRequest, stream
}
func (s *WorkflowServer) ListWorkflows(ctx context.Context, req *api.ListWorkflowsRequest) (*api.ListWorkflowsResponse, error) {
workflows, err := s.resourceManager.ListWorkflows(req.Namespace, req.WorkflowTemplateUid)
workflows, err := s.resourceManager.ListWorkflows(req.Namespace, req.WorkflowTemplateUid, req.WorkflowTemplateVersion)
if errors.As(err, &userError) {
return nil, userError.GRPCError()
}