CARDS-2510: Fix computed questions always recalculating on checkin #1752
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
To ensure that computed questions are working as expected:
Launch in runmode test with --dev enables
Sign in to user:
computedtestuser
password:testpassword
Create a Backend Computed Question form but do not input any answers or save it
Check the created form using composum. It should have 2 sections, one with 4 answers and one with 8 answers.
Save the form with no edited answers
Create a new Backend Computed Question form, fill out all answers and save it.
Sign out of
computedtestuser
and sign intoadmin
View the created forms in view mode only and verify that the answers are as expected
To ensure that the computed questions are only being recalculated when desired:
ComputedAnswersEditor.computeAnswers
on lines 194 and 199 as shown below:result=1
)