Skip to content

feat(form): add more case info to jexl context #2205

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

Merged
merged 1 commit into from
Apr 29, 2024
Merged

feat(form): add more case info to jexl context #2205

merged 1 commit into from
Apr 29, 2024

Conversation

czosel
Copy link
Contributor

@czosel czosel commented Apr 25, 2024

@czosel czosel requested a review from winged April 25, 2024 18:52
@czosel czosel force-pushed the jexl-root-case branch 2 times, most recently from 4198a94 to d972691 Compare April 29, 2024 12:54
Copy link
Contributor

@winged winged left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a tiny left-over line

@winged winged enabled auto-merge April 29, 2024 13:09
@@ -49,6 +49,8 @@ def get(self, name, default=None):
out = out()
if isinstance(out, Element) or isinstance(out, dict):
return out
if out is None:
return None
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@winged I still added coverage for the "disconnected document" case - I had to add this line to make it pass, because otherwise the returned value is the string "None" instead of null.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes makes perfect sense

@winged winged merged commit e6a44cf into main Apr 29, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants