🚀 Feature: Change deployed function code directly in appwrite console
🔖 Feature description
It would be nice to have the ability to create/change and deploy appwrite function directly in the appwrite console.
A simple code editor for that would be okay as a first version.
🎤 Pitch
Testing and updating cloud (appwrite) function via console itself is a faster way of debugging and testing new changes that we need to implement.
Here's an example of steps we need to do right now
- Init appwrite function if it's not there already
- Make code changes
- Deploy
- Execute either by going to the console or programatically
- Read the logs
In case of using Typescript there's a build step before deployment.
But, if we would be able to edit and deploy function directly in the console, local development steps would not be necessary and we would be debugging and testing (potentially fixing bugs) a lot faster.
Inspiration for this comes from AWS Console Lambda service where they have that feature.
Some examples bellow for those who are not familiar with it.
https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/create-python-aws-lambda-function-hello-world-tutorial-serverless-how-to-example
https://www.youtube.com/watch?v=zoMtiYifsik&t=180s
👀 Have you spent some time to check if this issue has been raised before?
- [X] I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
- [X] I have read the Code of Conduct
So I can see that the function code is stored as a .gz file. To display and/or edit the code, we would need to decompress the gz file, and get the relevant files.
This would definitely need a lot of thought because it might be straight-forward if people use the init file that comes with the function, but with more files comes the added UI design and handling.
We'd love to add this, but if we're going to do it, we're going to do it damn well. Doing it great will take some time and effort, so this is not high on our priorities right now.