Skip to content
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

Create set of functions for the filter evaluations #13

Open
AuHau opened this issue Feb 2, 2022 · 2 comments
Open

Create set of functions for the filter evaluations #13

AuHau opened this issue Feb 2, 2022 · 2 comments
Labels
kind:enhancement A net-new feature or an improvement to an existing feature P3 Low: Not priority right now

Comments

@AuHau
Copy link
Owner

AuHau commented Feb 2, 2022

govaluate allows adding custom functions that can be exposed to the filter expression. We could add all sort of convenience functions for example for:

  • string manipulations
    • contains() - bool if contains substring
    • startsWith() - bool if string starts with substring
    • endsWith() - bool if string ends with substring
@AuHau AuHau added kind:enhancement A net-new feature or an improvement to an existing feature P3 Low: Not priority right now labels Feb 2, 2022
@AuHau
Copy link
Owner Author

AuHau commented Feb 7, 2022

Now that we have switched to expr the previously mentioned functions are actually already implemented there, but this is still possible and we should think of what custom functions would make sense to include.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:enhancement A net-new feature or an improvement to an existing feature P3 Low: Not priority right now
Projects
None yet
Development

No branches or pull requests

1 participant