-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raytha Functions: Embeddable functions / scripting #177
Comments
Functions should probably support current user context and admin context. I can envision a function that should allow a user to update their own profile. Or an admin context that can list all users |
@apexdodge has development stopped.. |
@fasteddys this feature is in development and release is scheduled for April. |
This has been merged into |
The next big feature will be to permit running server side scripting code directly within the platform, without having to deploy. This will open up a huge amount of capability, but does require coding knowledge.
We will call this feature Raytha Functions.
New left side navigation menu item, only viewable and accessible to those with Manage System permission, will say
Functions
.Functions page should:
Create function
Form appears with the following fields:
We are going to use ClearScript for embedding javascript:
https://github.com/microsoft/ClearScript?tab=readme-ov-file
https://microsoft.github.io/ClearScript/Examples/Examples.html
Our ClearScript will attach some javascript classes that mimic IActionResult
In order for Raytha Functions to be useful, we need to expose an interface that it can interact. The interface should represent functionality for:
New appsettings.json configuration:
RAYTHA_FUNCTIONS_TIMEOUT
and default to 10000 ms.RAYTHA_FUNCTIONS_MAX_ACTIVE
and default to 5. If 0, disable the feature entirely.Hitting the endpoints at /raytha/functions/execute/{developerName} will then trigger the correspondin ClearScript function for that DeveloperName if it exists. The running of the clearscript should crash out if it exceeds the timeout in appsettings for safety reasons.
We should be able to edit an existing function, disable / enable it, revert to previous revision, delete it.
The text was updated successfully, but these errors were encountered: