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

Prevent repeating GCS referencing static CS with answers repeating for same list #227

Merged
merged 7 commits into from
Dec 15, 2023

Conversation

katie-gardner
Copy link
Contributor

@katie-gardner katie-gardner commented Nov 28, 2023

What is the context of this PR?

This PR prevents a repeating Grand Calculated Summary from including a static Calculated Summary that has repeating answers for the same list. It is in place to support the corresponding runner PR

This included some changes to questionnaire_schema to include a way of looking up a list name by answer id. I wasn't aware of another way to easily do this.

How to review

Check over the added invalid test schema and make sure it is correctly covering the case that the card mentions to exclude. GCS should allow a static CS repeating over a different list, but not the same one. Look for any possible edge cases this has missed.

Checklist

  • eq-translations updated to support any new schema keys which need translation

@MebinAbraham MebinAbraham added the Bug Fix Something isn't working label Dec 14, 2023
@katie-gardner katie-gardner merged commit d2c5f56 into main Dec 15, 2023
3 checks passed
@katie-gardner katie-gardner deleted the gcs-in-repeat-with-static-cs-repeating-answers branch December 15, 2023 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Fix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants