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.
For calculated questions, we introduce the
calc_dependantsfield 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_hiddenand requirednessis_requiredas 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.