Skip to content

fix(hidden-question): Adding string condition handlers for hidden question type - #40

Merged
Rom1-B merged 2 commits into
mainfrom
fix/hidden-question-string-condition-handlers
Aug 4, 2026
Merged

fix(hidden-question): Adding string condition handlers for hidden question type#40
Rom1-B merged 2 commits into
mainfrom
fix/hidden-question-string-condition-handlers

Conversation

@ccailly

@ccailly ccailly commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Checklist before requesting a review

Please delete options that are not relevant.

  • I have performed a self-review of my code.
  • I have added tests (when available) that prove my fix is effective or that my feature works.
  • I have updated the CHANGELOG with a short functional description of the fix or new feature.

Description

  • It fixes #44202

This pull request enhances the HiddenQuestion type to support being used as a criteria in form conditions and adds support for string-based condition handling.

@ccailly ccailly self-assigned this Jul 30, 2026
@ccailly ccailly added the bug Something isn't working label Jul 30, 2026
@ccailly
ccailly force-pushed the fix/hidden-question-string-condition-handlers branch from c379d0f to c043428 Compare August 3, 2026 12:50
@ccailly
ccailly marked this pull request as ready for review August 3, 2026 12:51
@ccailly
ccailly requested review from Rom1-B and RomainLvr August 3, 2026 12:51
Comment thread CHANGELOG.md Outdated
@ccailly
ccailly force-pushed the fix/hidden-question-string-condition-handlers branch from c043428 to 382b9e2 Compare August 3, 2026 13:27
The condition handlers added to HiddenQuestion were not covered by any
test. Add a test case based on the core AbstractConditionHandlerTest,
which evaluates every operator supported by StringConditionHandler on a
hidden question and checks that the question type exposes them.

Extract the configurable items helpers of AdvancedFormsTestCase into a
trait, as a test case extending a core abstract test case can't extend
AdvancedFormsTestCase but still needs to enable the tested question type.

Also add the missing changelog entry for the fix itself.
@ccailly
ccailly force-pushed the fix/hidden-question-string-condition-handlers branch from 382b9e2 to dec2f9b Compare August 3, 2026 13:29
@ccailly
ccailly requested a review from Rom1-B August 3, 2026 14:12
@Rom1-B
Rom1-B merged commit 95d3fff into main Aug 4, 2026
3 checks passed
@Rom1-B
Rom1-B deleted the fix/hidden-question-string-condition-handlers branch August 4, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants