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

CARDS-2509: Reference question should support conditions based on sou… #1791

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Commits on Jul 18, 2024

  1. CARDS-2509: Reference question should support conditions based on sou…

    …rce form metadata
    
    Add optional condition properties to reference questions:
    - conditionalProperty: A property on the referenced form to be evaluated
    - conditionalOperator: The operator that should be used for the comparison.
                           Supports all operators supported by Conditional Sections
    - conditionalValue: The value that the property should be compared against
    - conditionalFallback: The value that should be saved instead of the
                           referenced value if the condition is not satisfied
    - conditionalType: The type of the property that is being compared
    
    Refactored backend conditional section code in order to reuse conditional evaluation code
    
    Update Reference Test forms to add testing support for new conditional references
    - Added new section with 4 new questions to the bottom of ReferenceTestCopied.
      These questions are conditional on ReferenceTestUser being completed
    - Made one question in ReferenceTestUser mandatory to allow the form to be edited
      between incomplete and complete
    acrowthe committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    2d1252d View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. CARDS-2509: Reference question should support conditions based on sou…

    …rce form metadata
    
    Add optional error message when a conditional reference is not satisfied
    - Allows non-text questions to have a text based error display
    acrowthe committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    95a6d10 View commit details
    Browse the repository at this point in the history
  2. CARDS-2509: Reference question should support conditions based on sou…

    …rce form metadata
    
    - Add invalid source flag to reference questions with no source
    acrowthe committed Jul 23, 2024
    Configuration menu
    Copy the full SHA
    df8515b View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2024

  1. CARDS-2509: Reference question should support conditions based on sou…

    …rce form metadata
    
    - Updated the import script to support conditional properties of reference questions
    marta- committed Jul 25, 2024
    Configuration menu
    Copy the full SHA
    bea5121 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. CARDS-2509: Reference question should support conditions based on sou…

    …rce form metadata
    
    - Clean up unused javadoc
    - Add missing conditional reference columns to questionnaire import
    - Add missing null checks
    acrowthe committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    3a22afb View commit details
    Browse the repository at this point in the history