-
Notifications
You must be signed in to change notification settings - Fork 74
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
Trigger Feed vs Non-Feed inputs apply differently #1077
Comments
Yes, this is an old issue. When you create a trigger with
Also, when you get the trigger information, it fetches data from the feed using
So there is no given parameter stored in the trigger infromation. Alternatively, you can directly configure trigger payload in the trigger with REST API.
while there is no parameter configured in the feed side.
The invocation is also slightly different. The empty "payload" is also passed as a trigger parameter.
The current behavior is generally not a problem. |
Ok, there are still two unanswered questions though (correct me if I'm wrong):
Note also that I'm using wskdeploy - if you can provide yaml examples that would be helpful. |
@style95 I had interacted with @dpsommer and asked him to open this issue. After speaking with Priti, it seems that last year (May 2018) that we found that the Go Client was not accepting/forwarding the "payload" annotation (key and value map)... At the time, James Dubee ack'ed the problem and thought he would work to address this in the Go Client and wskdeploy would then work. Apparently, the "ball was dropped" and no issue was opened and no fix was made to the Go Client code. Adding @pritidesai as she has the first-hand story, as I have just relayed above what she told me. My belief is we should open an issue for Go client for the actual "fix" and provide detailed information and attempt to record the history as well. Then link that issue to this one where we would then add another testcase to verify the payload annotation works. |
@dpsommer inputs:
timezone: America/Toronto
cron: * * * * *
trigger_payload:
service_name: planning-analytics Your way is also passed to the action, but it looks like the |
Updating but as @mrutkows mentioned, the payload itself still isn't forwarded at all to the triggered actions. As a side note, when I try to put the same markup in
|
The same issue is raised multiple places: #884 Looks like it has not been resolved yet. @jasonpet @dubee @eweiter any more info/updates on this? |
Hey @steven0711dong any insight into this? @jasonpet sent me your way |
@dpsommer We are checking on the version we used to see the difference. |
@dpsommer |
@dpsommer Thank you for the confirmation. So the main issue is that trigger parameters are stored in the alarm package stack rather than a trigger itself. |
@steven0711dong is looking into this and will start fixing it next week ... thanks @steven0711dong! |
I've run into the following issue trying to deploy triggers/rules to IBM Cloud Functions.
Trigger inputs seem to have different behaviour depending on whether or not a
feed
parameter is specified. Without a feed parameter, the inputs array is sent as an object to the Parameters object in Functions, which is then passed to triggered actions as part of the input payload. When given a feed parameter, in this case/whisk.system/alarms/alarm
, the expected feed parameters work (cron
,timezone
) and correctly configure the trigger, but any additional parameters aren't passed to the Parameters object as above.The
trigger_payload
parameter seems like it would be the way to go in this case, but when setting it as documented (see below screenshot of the created trigger's spec from a GET) it does seem to apply but isn't passed along to the actions as is the case with the Parameters object.Is there a different syntax I should be using for the
payload
value?Alternatively, is there a way to define a separate set of inputs that will be parsed differently so I can populate both the feed inputs and the Parameters object?
I've attached the manifest and deployment files below (as txt due to GH restrictions).
Note that using typed bindings for parameters in the manifest doesn't seem to make a difference.
deployment.txt
manifest.txt
@mrutkows
The text was updated successfully, but these errors were encountered: