apache / apache/openwhisk-cli

Delete default parameters for actions and packages (and annotations too)

Aperta
#161 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Go
Stelle
109
Fork
98
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

@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`.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con il comando `wsk action update` e con la sottorisorsa proposta `/api/v2/actions/ns/pkg/name/parameters` descritta nell’issue. Determina l’ambito dell’API e della CLI per eliminare singoli parametri e annotazioni, quindi definisci il completamento attorno a un’operazione di eliminazione coerente sia per le actions sia per i packages.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
go
Ambito
api, cli
Tipo di issue
Funzionalità
Difficoltà
5/5
Tempo stimato
Più di una settimana
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.