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

Add new get value function with dynamic path #601

Merged
merged 5 commits into from
Mar 17, 2023

Conversation

koevskinikola
Copy link
Member

Description

Add a new get value function with a new signature. With this function, a user can dynamically pass a path to obtain a nested property in a given context.

Related issues

closes #11293

@koevskinikola koevskinikola force-pushed the 11293-dynamic-path-get-value branch from d55837b to 9dc728b Compare March 14, 2023 13:40
@koevskinikola koevskinikola marked this pull request as ready for review March 14, 2023 13:40
@koevskinikola koevskinikola requested a review from saig0 March 14, 2023 13:40
@koevskinikola koevskinikola self-assigned this Mar 14, 2023
Copy link
Member

@saig0 saig0 left a comment

Choose a reason for hiding this comment

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

@koevskinikola thank you for driving our mob programming session. 🚀

❌ I found one case that could lead to a cast exception in Zeebe.
❌ We need to document the new function.
🔧 I have an idea to refactor the function a bit.

Please have a look at my comments. Happy to answer your questions or discuss/code f2f. 🍪

Add test coverage for the new get value function where you can pass a dynamic path to get a value out of a given context.
Add a new get value function with a new signature. With this function, a user can dynamically pass a path to obtain a nested property in a given context.
Document the newly supported getValue built-in function which supports providing a path (as a list of context keys) for which to obtain a nested context entry.
@koevskinikola koevskinikola force-pushed the 11293-dynamic-path-get-value branch from 9dc728b to 8d6657d Compare March 17, 2023 13:24
@koevskinikola koevskinikola requested a review from saig0 March 17, 2023 13:24
@koevskinikola
Copy link
Member Author

@saig0 I implemented your review hints. I also restructured the commits a bit, so they are merge-ready.

Copy link
Member

@saig0 saig0 left a comment

Choose a reason for hiding this comment

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

@koevskinikola LGTM. 🎉

@saig0 saig0 merged commit c7da5fa into main Mar 17, 2023
@saig0 saig0 deleted the 11293-dynamic-path-get-value branch March 17, 2023 13:39
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.

I can access a nested property of a variable by using a dynamic path
2 participants