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

Support optimizations for more expressions #727

Merged
merged 8 commits into from
Dec 5, 2023

Conversation

seadowg
Copy link
Member

@seadowg seadowg commented Aug 18, 2023

Closes #726
Blocked by #722

What 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!

@seadowg seadowg requested a review from lognaturel October 4, 2023 08:21
@seadowg seadowg force-pushed the extra-expressions branch from 4f950f2 to 8770307 Compare October 4, 2023 08:28
@seadowg seadowg marked this pull request as ready for review October 4, 2023 08:43
// This call triggers the correct population of dynamic choices.
questionPrompt.getAnswerValue();
// // This call triggers the correct population of dynamic choices.
// questionPrompt.getAnswerValue();
Copy link
Member

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?

Copy link
Member

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

@seadowg seadowg requested a review from lognaturel December 5, 2023 11:38
@lognaturel lognaturel merged commit 349239d into getodk:master Dec 5, 2023
3 checks passed
@seadowg seadowg deleted the extra-expressions branch December 5, 2023 16:46
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.

CompareChildToAbsoluteExpression should support more expressions
2 participants