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

Item-level formula evaluation basic implementation #266

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ttsuchiya
Copy link

No description provided.

Takahiko Tsuchiya added 4 commits December 17, 2018 10:51
- Case value retrieval: Removed the restriction for formula evaluation that had limited reference to the collection level.
- Pre-fill the collection model with evaluated formula values to ensure proper table regeneration.
- Regenerate collection cases when 1) case values changes 2) formula changes to ensure proper table structure.
- The previous commit's 1) regen when case-value updates was not working (it was working only when adding a new case).
@ttsuchiya
Copy link
Author

@jsandoe Please review. Thanks!

Copy link
Member

@jsandoe jsandoe left a comment

Choose a reason for hiding this comment

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

Taka, I am concerned about the increase in the number of calls to regenerateCollectionCases. This is a very expensive operation as currently implemented, especially with larger data sets. I am going to download this PR branch and try to see if I can quantify any performance degradation we might incur.
Jonathan

@ttsuchiya
Copy link
Author

That is fair. I guess these regenerateCollectionCases could use conditionals with dependent (formula) and dependency (attributes used by formula) checks rather than blind calls, but I couldn't get to the bottom of those yet. With globals concerned, the current code needs some changes in how to determine the type of dependency (simple vs aggregate dependency).

@kswenson kswenson added the v2 CODAP v2 label Aug 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 CODAP v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants