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

fix(calc-questions): always calculate calculated answer if possible #2874

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

winged
Copy link

@winged winged commented Jan 14, 2025

We don't need to ensure that every dependency is non-hidden; indeed it should be possible to evaluate an expression where parts of the dependencies are not set. This is how the backend does it. Also, the answer transform does have a default option, so we should easily be able to deal with this.

We don't need to ensure that *every* dependency is non-hidden; indeed it
should be possible to evaluate an expression where parts of the dependencies
are not set. This is how the backend does it. Also, the `answer` transform
does have a default option, so we should easily be able to deal with this.
The answer transform should behave exactly as follows:

* Field does not exist: return default value, or empty
* Field is hidden: Return empty value
* Field is unset: Return default value or empty
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.

1 participant