-
Notifications
You must be signed in to change notification settings - Fork 107
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
Support optimizations for more expressions #727
Conversation
This prevents problems that might arise from custom functions
4f950f2
to
8770307
Compare
// This call triggers the correct population of dynamic choices. | ||
questionPrompt.getAnswerValue(); | ||
// // This call triggers the correct population of dynamic choices. | ||
// questionPrompt.getAnswerValue(); |
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.
This was definitely needed originally. I'm not sure at what point it stopped being required. Maybe when we started caching? Do we need to look deeper into it or can we just delete these two lines?
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.
In v3.0.0, it was definitely needed
Closes #726
Blocked by #722What has been done to verify that this works as intended?
New tests and verified manually with Collect.
Why is this the best possible solution? Were any other approaches considered?
Discussed in #726.
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
I've moved some of the filter chain stuff around (it now lives in
FormDef
) so there's risk I've broken some of the existing caching/predicate evaluation along with adding support for the new expressions. Hopefully we have enough testing around this stuff to catch problems, but it's always good to see if you can spot edge cases while reviewing!