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

fix: exam content will not be viewable if due date has passed #872

Merged
merged 2 commits into from Jun 7, 2021

Conversation

alangsto
Copy link
Contributor

@alangsto alangsto commented Jun 4, 2021

MST-846

Previously, if a learner had submitted their proctored exam and if the exam due date had passed, they were able to acknowledge their status and view the exam content. This is no longer wanted and poses an integrity threat. Students will not be able to acknowledge their status after this change, and exam content will only be viewable if the django setting PROCTORED_EXAM_VIEWABLE_PAST_DUE is set to True.

Pre-Merge Checklist:

  • Updated the version number in edx_proctoring/__init__.py and package.json if these changes are to be released.
  • Described your changes in CHANGELOG.rst
  • Confirmed Github reports all automated tests/checks are passing.
  • Approved by at least one additional reviewer.

Post-Merge:

  • Create a tag matching the new version number.

Copy link
Contributor

@schenedx schenedx left a comment

Choose a reason for hiding this comment

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

👍

attempt['is_status_acknowledged'],
exam
) else 'proctored_exam/submitted.html'
) and getattr(settings, 'PROCTORED_EXAM_VIEWABLE_PAST_DUE', False)) else 'proctored_exam/submitted.html'
Copy link
Contributor

Choose a reason for hiding this comment

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

#NIT Can we please assign this variable to a variable in the constant.py? This is slightly more difficult to read?

@schenedx
Copy link
Contributor

schenedx commented Jun 7, 2021

Maybe you just need to re-run build? The build error doesn't look like it's code related.

@alangsto alangsto force-pushed the alangsto/prevent_viewing_exams branch 3 times, most recently from da3e1e2 to dc2ec57 Compare June 7, 2021 14:09
Previously, if a learner had submitted their proctored exam and if the
exam due date had passed, they were able to acknowledge their status
and view the exam content. This is no longer wanted and poses an integrity
threat. Students will not be able to acknowledge their status after this change,
and exam content will only be viewable if the django setting PROCTORED_EXAM_VIEWABLE_PAST_DUE
is set to True.
@alangsto alangsto force-pushed the alangsto/prevent_viewing_exams branch from dc2ec57 to 6ef85e5 Compare June 7, 2021 14:14
@alangsto
Copy link
Contributor Author

alangsto commented Jun 7, 2021

@schenedx I believe that codecov is experiencing issues right now (see codecov/codecov-action#330), so I've temporarily disabled the setting fail_ci_if_error to allow tests to run/finish

@schenedx
Copy link
Contributor

schenedx commented Jun 7, 2021

@alangsto Got it. That's sad. Disable it temporally make sense.

@alangsto alangsto merged commit f1ebee0 into master Jun 7, 2021
@alangsto alangsto deleted the alangsto/prevent_viewing_exams branch June 7, 2021 14:45
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.

None yet

2 participants