-
Notifications
You must be signed in to change notification settings - Fork 979
[➕ Feature]: Jinja template engine in workflow templates #4594
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
Comments
Absolutely! Closing #3129 in favor of this issue |
👀 |
Can I work on this issue? |
For sure. I would say it’s tough one but if you feel you ready you can try! |
Ok, seems like I'm done with it. Will be glad for review ^_^ |
@EnotShow lot of tests are failing, can you have a look? |
**✨ Features -It’s not possible to use a tracking dictionary for Jinja2 in the same way as Mustache, because Jinja2 internally converts the context to a plain dict during rendering. I need some help with workflow execution tests for jinja2 cose, I not so sure about how it work, but except it work seems like done Need review |
Done! |
Is your feature request related to a problem? Please describe
In our system, some alerts include all the labels, while others do not. When certain metrics or fields are missing, it causes exceptions during template rendering. This makes it difficult to build robust templates that can handle all alert variations gracefully. It's currently difficult due to the limitations of custom templating. Using Jinja instead would make it much easier and more flexible.
Describe the solution you'd like
Replace the current custom templating system with Jinja. This would provide greater flexibility and power when creating templates, especially when handling optional fields and conditional logic.
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: