Delete default parameters for actions and packages (and annotations too)
- Vorherrschende Sprache
- Go
- Sterne
- 109
- Forks
- 98
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
@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`.
Beitragsleitfaden
Rechercherichtung
Beginne mit dem Befehl `wsk action update` und der im Issue beschriebenen vorgeschlagenen Subressource `/api/v2/actions/ns/pkg/name/parameters`. Ermittle den Umfang von API und CLI zum Löschen einzelner Parameter und Annotationen und definiere anschließend den Abschluss rund um eine konsistente Löschoperation sowohl für Actions als auch für Packages.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- go
- Bereich
- api, cli
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100