appwrite / console

The Console that makes Appwrite tick from the browser 🖥
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
331 stars 144 forks source link

🚀 Feature: [Functions] Separate Options for Runtimes & Versions #1441

Open ItzNotABug opened 1 year ago

ItzNotABug commented 1 year ago

🔖 Feature description

Show 2 selectors when setting up the Functions.


One for selecting a Runtime from all the available & supported ones. The other for choosing the installed version of the selected on the system.

Note: This is particularly more useful on Cloud since it now supports all the Runtimes.

functions_runtime runtime_selection runtime_version_selection

🎤 Pitch

Pl. refer the screenshot added.

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

🏢 Have you read the Code of Conduct?

stnguyen90 commented 1 year ago

@ItzNotABug, thanks for creating this issue! 🙏🏼 Would you please provide some more details and context as to why this is needed?

ItzNotABug commented 1 year ago

Excerpt from a discussion on Discord -

  1. Cloud users are limited to choosing a Runtime atm, so a list of all in the Runtimes would be good. Example: Bun is supported on 1.4x but isn't added on Cloud (This is added now, was not previously).

  2. Consider a Function that is built on NodeJs 18.0 which works fine but "may" not work fine on 20.0 due to some internal api changes or so & migration isn't planned or delayed. On the other hand, there's a new function which can use 20.0 & the new features. Showing multiple versions to choose from gives more flexibility & wouldn't break existing functions.

This is just an overview without much details, but should give a gist of the idea.


functions_runtime_and_versions