New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add path system to reference nested data in process #1545
Conversation
4783e50
to
99a1faf
Compare
99a1faf
to
05fde2d
Compare
05fde2d
to
fa11edc
Compare
optional path test added |
# Conflicts: # process/process.pb.go
TODO:
|
@@ -259,3 +260,51 @@ func (s *Orchestrator) processTask(nodeKey string, task *process.Process_Node_Ta | |||
}, s.accountName, s.accountPassword) | |||
return err | |||
} | |||
|
|||
func resolveRef(data *types.Struct, path *process.Process_Node_Map_Output_Reference_Path) (*types.Value, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find this code really complicated with the v
that is assigned in multiple places and the iteration over the path from an existing path. I think this would be much simpler with a recursive function.
@@ -224,9 +225,9 @@ func (s *Orchestrator) resolveInput(wfHash hash.Hash, exec *execution.Execution, | |||
if err != nil { | |||
return nil, err | |||
} | |||
return s.resolveInput(wfHash, parent, nodeKey, outputKey) | |||
return s.resolveInput(wfHash, parent, nodeKey, path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolveInput
wasn't resolving any path, I just added a commit with the fix
dep #1540
close #1306