-
Notifications
You must be signed in to change notification settings - Fork 45
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
🐛 Fix chaining in Java provider #721
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
This reverts commit cb8dbf8.
This reverts commit cc85616.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you for adding this!
@@ -611,7 +611,7 @@ func templateCondition(condition []byte, ctx map[string]engine.ChainTemplate) ([ | |||
s := strings.ReplaceAll(string(condition), `'{{`, "{{") | |||
s = strings.ReplaceAll(s, `}}'`, "}}") | |||
|
|||
s, err := mustache.Render(s, true, ctx) | |||
s, err := mustache.RenderRaw(s, true, ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why render raw vs render just for my knowledge :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We were calling the Render
method passing true
as a second parameter, but the signature of Render doesn´t have a bool parameter. RenderRaw
has, and I thought there was some reason in the past to use RenderRaw
but the invocation was done mistakenly by calling Render
instead...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! that makes sense
See #718