Skip to content

fix(submission): do not require hidden questions, reject booleans on linear scales - #3870

Merged
AndyScherzinger merged 2 commits into
mainfrom
fix/submission-hidden-questions-and-scales
Nov 11, 2026
Merged

AndyScherzinger merged 2 commits into
mainfrom
fix/submission-hidden-questions-and-scales

Conversation

@AndyScherzinger

Copy link
Copy Markdown
Member

Split out of #3833, so it can be merged and backported on its own. The commits are unchanged and drop out of #3833 once this is merged.

  • Required questions the submit view does not show (no title, no options, a grid without rows or columns) are no longer required by the server, so such a form can be submitted again.
  • Linear scales reject booleans and lists as answers instead of reading true as 1.

Tests

  • SubmissionServiceTest passes (103 tests).

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

The submit view hides questions without a title, choice, dropdown and
ranking questions without options, and grid questions without rows or
columns. The server still required an answer to such a question when it
was marked as required, so every submission failed with "Question "" is
required." and respondents could not fix it.

Skip the required check for these questions, using the same rules as the
submit view.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
A linear scale accepted the answer true as the value 1, as the check
cast it to the string "1". A list was cast to "Array" with a warning
before it was rejected. Both are now rejected as not being a value of
the scale.

Assisted-by: Claude Code:claude-opus-5-5
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
@AndyScherzinger AndyScherzinger added bug Something isn't working 3. to review Waiting for reviews labels Nov 11, 2026
@AndyScherzinger AndyScherzinger self-assigned this Nov 11, 2026
@codecov

codecov Bot commented Nov 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@Chartman123

Copy link
Copy Markdown
Collaborator

/backport to stable5.4

@backportbot backportbot Bot added the backport-request Pending backport by the backport-bot label Nov 11, 2026
@AndyScherzinger
AndyScherzinger merged commit f4e99cf into main Nov 11, 2026
51 checks passed
@AndyScherzinger
AndyScherzinger deleted the fix/submission-hidden-questions-and-scales branch November 11, 2026 09:07
@backportbot backportbot Bot removed the backport-request Pending backport by the backport-bot label Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants