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

Form data model: Store all JEXL dependants, cache hidden/required information #2373

Open
winged opened this issue Feb 10, 2025 · 0 comments
Open

Comments

@winged
Copy link
Contributor

winged commented Feb 10, 2025

For calculated questions, we introduce the calc_dependants field on the questions. This is useful, as it allows us to recalculate a field in the right moment, when one of it's inputs changed. No "reverse lookups" from the JEXL expressions needed.

The same thing would be useful for calculating visibility is_hidden and requiredness is_required as well. Because if we did have this information, we could speed up the calculation. We could even pre-calculate the state of these two attributes and only update them when needed.

I think this might speed up (backend) validation immensely.

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

No branches or pull requests

1 participant