-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Disjoin Operation #457
base: master
Are you sure you want to change the base?
Disjoin Operation #457
Conversation
[ARCH] Multi-architecture Docker image
{ | ||
"name": "Split delimiter", | ||
"type": "binaryShortString", | ||
"value": "\\n" | ||
}, |
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.
Why does this operation need to split? I think I'd prefer using Fork
and then Disjoin
. No need to have the same capability in both.
break; | ||
} else { | ||
const subRec = new Recipe(); | ||
subRec.addOperations(opList[i]); |
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.
addOperations
takes a list of operations, should probably be
subRec.addOperations[opList[i]]
const recipe = subRecList[i]; | ||
|
||
// Take a deep(ish) copy of the ingredient values | ||
const ingValues = recipe.opList.map(op => JSON.parse(JSON.stringify(op.ingValues))); |
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.
Could use structuredClone
instead
constructor() { | ||
super(); | ||
|
||
this.name = "Disjoin"; |
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.
Still not sure how I feel about the name Disjoin
. Perhaps Concurrently
?
Adds in the "Disjoin" operation, which attempts to satisfy the operation requested in issue #424.
I say attempts, as I'm not really sure how other types of flow operations should affect/be affected by this operation. For example, if one of the proceeding operations was a "jump" operation. I made a test out of the example provided in the issue, and that passes, but I was a little unsure of the full utility that the operation could provide, and would love to see more examples of this in order to fully flush it out.
I also heavily modeled the code based on the "Fork" operation's implementation, and there were a few things in there that I'm not sure are necessary for this operation that were present in the "Fork" operation. So, I would love a code review to look for things that were unnecessarily copied over. Just let me know! Thanks!