Git Product home page Git Product logo

Comments (9)

rabbah avatar rabbah commented on May 18, 2024 1

Use update to define new prameters. These replace existing ones.

from openwhisk.

rabbah avatar rabbah commented on May 18, 2024 1

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.

from openwhisk.

kolien avatar kolien commented on May 18, 2024

As I understand it, this will replace existing parameters with new ones, but not delete them.

from openwhisk.

rabbah avatar rabbah commented on May 18, 2024

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.

from openwhisk.

sjfink avatar sjfink commented on May 18, 2024

Proposal : add a -dp flag to wsk action update which means "delete parameter".

Comments?

from openwhisk.

rabbah avatar rabbah commented on May 18, 2024

@dubeejw @mdeuser FYI.

from openwhisk.

ioana-blue avatar ioana-blue commented on May 18, 2024

Somewhat related to this: updating parameters is not additive, an update to the action code doesn't seem to remove the default param values.

from openwhisk.

rabbah avatar rabbah commented on May 18, 2024

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.

from openwhisk.

csantanapr avatar csantanapr commented on May 18, 2024

Issue moved to apache/incubator-openwhisk-cli #161 via ZenHub

from openwhisk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.