Skip to content

🚀 Feature: Enable / Disable Functions from Console #1439

@ItzNotABug

Description

@ItzNotABug

🔖 Feature description

This Server Side SDK for Functions has this param enabled on method functions.update(...) but the console does not have a UI component to toggle this behaviour.


On a side note, the docs say -

ENABLED boolean

Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.

This doesn't include info. if the Function will be triggered by Events or Cron or only by the Server Side SDKs with an API Key.

🎤 Pitch

As discussed about the usecase on Discord -

Usecase: A normal function is exposed to be used on production, receives events, requests and what not.

Now if you want to test another function that receives similar events, the one in production will be executed on test values / useless event data.

More discussion here.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestproduct / functionsFixes and upgrades for the Appwrite Functions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions