Skip to content

Fact sheet refactor

Placeholder Christopher "Logan" Ruf requested to merge fact_sheet_refactor into develop

@ mention of reviewers`

@ckcollab @gibsonbailey`

Screenshots

Edit Form image Submission Upload image Submission Details image Leaderboard image

A brief description of the purpose of the changes contained in this PR.

Update to the Fact_Sheet system. Adds metadata for is_required, is_on_leaderboard, and title is_required for selection questions will create a blank default entry is_required for text entry does not validate empty strings is_on_leaderboard will show the answer to a question on the leaderboard title will be the prompt the user sees on the fact_sheet and on the leaderboard

Issues this PR resolves

Resolves #550 (closed) Resolves #538 (closed)

A checklist for hand testing

  • Uploading a submission and adding to a leaderboard without a fact_sheet should work as intended
  • Uploading a submission with a fact_sheet question marked as is_on_leaderboard should show answer on the leaderboard
  • A selection question not marked is_required should have a blank option
  • A text question marked as is_required should not validate when submitting whitespace or nothing

Checklist

  • Code review by me
  • Hand tested by me
  • I'm proud of my work
  • Code review by reviewer
  • Hand tested by reviewer
  • Ready to merge

Merge request reports

Loading