-
Notifications
You must be signed in to change notification settings - Fork 41
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
Emit warning #942
Emit warning #942
Conversation
src/if-run/lib/compute.ts
Outdated
@@ -77,6 +78,10 @@ const computeNode = async (node: Node, params: ComputeParams): Promise<any> => { | |||
inputStorage = mergeDefaults(inputStorage, defaults); | |||
const pipelineCopy = structuredClone(pipeline) || {}; | |||
|
|||
if (Object.keys(pipelineCopy).length === 0) { |
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.
the Object.keys(pipelineCopy).length
has [ '0' ]
if there isn't compute, observe or regroup in the manifest. You can test manifests/examples/builtins/sum/success.yml
by commenting compute
and fixing the tabulation
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.
the waning doesn't appear, more in the review comment
Co-authored-by: Manushak Keramyan <manushak.keramyan@gmail.com> Signed-off-by: Narek Hovhannisyan <narekgilmour@gmail.com>
@manushak I'm unable to reproduce that case, can you please provide more background on it? |
Types of changes
A description of the changes proposed in the Pull Request