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

feat: validate submission response required fields #241

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

hajorg
Copy link

@hajorg hajorg commented Sep 20, 2024

Summary

Text and file upload requirement not being applied when submitting an ORA and it's letting learners submit without meeting the response requirement. This PR validates the required fields

Copy link

codecov bot commented Sep 20, 2024

Codecov Report

Attention: Patch coverage is 95.12195% with 2 lines in your changes missing coverage. Please review.

Project coverage is 89.29%. Comparing base (3dd6d59) to head (c6544a3).

Files with missing lines Patch % Lines
...views/SubmissionView/hooks/useTextResponsesData.js 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #241      +/-   ##
==========================================
+ Coverage   89.19%   89.29%   +0.10%     
==========================================
  Files         142      143       +1     
  Lines        2175     2205      +30     
  Branches      468      476       +8     
==========================================
+ Hits         1940     1969      +29     
  Misses        222      222              
- Partials       13       14       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hajorg hajorg requested review from a team, BrandonHBodine, jansenk, nsprenkle, KristinAoki and Rodra and removed request for a team September 27, 2024 09:56
/>
<Form.Group isInValid>
<Dropzone
multiple
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that you didn't change this, but to my knowledge the paragon version of dropzone does not support multiple files. I would double check this functionality and remove the attribute if multiple files are not supported.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. I attempted to upload two files at a time but came across this error Only one upload permitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants