-
Notifications
You must be signed in to change notification settings - Fork 3
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
Feature : Alias Map #58
Comments
Good idea 💡 and not against, we just have to keep it true with Power Automate, since it is the core base - but we should still allow other use cases to be easy. This could be combined with #47 to replace the current way functions are registered and 'retrieved', added a metadata class with shorthands, i.e. eq => equal, could be a good solution. The use of shorthands should be controlled as an option, so it can be disregarded, and an error can be thrown, if ExpressionEngine is being used to test Power Automate flows. I don't think we should bloat the current way functions are registered and retrieved, but instead recreate it properly :D |
We agree, i am thinking
Would be a none breaking feature but provide a way to do it. |
FunctionMetadata.cs have been added to make it easier to add function aliases and make the function part lighter. Added FunctionMetadata.cs makes it possible to register a function on multiple aliases. Furthermore, only the FunctionMetadata class is retrieved as a list from DI, thus not building the function before it is actually needed, making room for more heavy dependencies, without making the entire engine slow. Resolved #47, Resolved #58. Still need to clean up.
🎉 This issue has been resolved in version 4.0.0-dev.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
🎉 This issue has been resolved in version 4.0.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
We based alot of functions of Power Automate, which makes sense. But generally writing my expressions i write
eq()
as a shorthand forequal
.Would properly be good to be able to just rename or alias functions in a project without having to implement it again.
I suggest we implement a service that can registered to map one function name to another.
The text was updated successfully, but these errors were encountered: