trieloff opened a new issue #168: Annotations for sequences require unwieldy workarounds URL: https://github.com/apache/incubator-openwhisk-client-js/issues/168 The intuitive way of adding annotation to a sequence is this: ```javascript openwhisk.actions.update({ annotations: { "web-export": true, "raw-http": false }, name: "mysequence", action: { exec: { kind: "sequence", components: ["/myuser/someaction"] } } }); ``` but the implementation of the client currently assumes that passing an `options.action` object means that the developer intends to build the whole request body themselves, which means the required call would be: ```javascript openwhisk.actions.update({ name: "mysequence", action: { namespace: "myuser", name: "mysequence", exec: { kind: "sequence", components: ["/myuser/someaction"] }, annotations: [ { key: "exec", value: "sequence" }, { key: "web-export", value: true }, { key: "raw-http", value: false }, { key: "final", value: true } ] } }); ``` While this might not be strictly a bug, it is clearly inconvenient and hard to get right without some assistance from @jthomas.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
