You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2017/11/22 03:49:02 UTC
[GitHub] csantanapr opened a new issue #161: Delete default parameters for actions and packages (and annotations too)
csantanapr opened a new issue #161: Delete default parameters for actions and packages (and annotations too)
URL: https://github.com/apache/incubator-openwhisk-cli/issues/161
@kolien commented on [Mon Mar 14 2016](https://github.com/apache/incubator-openwhisk/issues/76)
Using the command line interface, is it possible to delete default parameters for actions and packages once they have been defined?
---
@rabbah commented on [Mon Mar 14 2016](https://github.com/apache/incubator-openwhisk/issues/76#issuecomment-196344142)
Use `update` to define new prameters. These _replace_ existing ones.
---
@kolien commented on [Mon Mar 14 2016](https://github.com/apache/incubator-openwhisk/issues/76#issuecomment-196346821)
As I understand it, this will replace existing parameters with new ones, but not delete them.
---
@rabbah commented on [Mon Mar 14 2016](https://github.com/apache/incubator-openwhisk/issues/76#issuecomment-196476128)
That's true, from the CLI, you can replace but not delete. If you made a direct API call, you could delete and replace the parameters.
---
@sjfink commented on [Wed May 18 2016](https://github.com/apache/incubator-openwhisk/issues/76#issuecomment-220113284)
Proposal : add a -dp flag to wsk action update which means "delete parameter".
Comments?
---
@rabbah commented on [Mon Jul 18 2016](https://github.com/apache/incubator-openwhisk/issues/76#issuecomment-233428594)
@dubeejw @mdeuser FYI.
---
@ioana-blue commented on [Mon Jul 18 2016](https://github.com/apache/incubator-openwhisk/issues/76#issuecomment-233441982)
Somewhat related to this: updating parameters is not additive, an update to the action code doesn't seem to remove the default param values.
---
@rabbah commented on [Mon Jul 18 2016](https://github.com/apache/incubator-openwhisk/issues/76#issuecomment-233442949)
when you update an action with new code, and don't specify any parameters, the POST looks like this `{ exec: ...}` and not `{exec: ..., params: []}`. This is allow you to update exec but not remove annotations or parameters that are already attached to the action. The way to remove the parameters through the CLI will require a solution as suggested by @sjfink above.
---
@rabbah commented on [Tue Mar 14 2017](https://github.com/apache/incubator-openwhisk/issues/76#issuecomment-286463937)
To allow incremental updates (add/delete) individual parameters and annotations, we need an API change. This may be best done as part of the "v2" of the API; we can treat parameters and annotations as subresources of the action as in `/api/v2/actions/ns/pkg/name/parameters`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services