Skip to content

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

Description

@winged

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions