-
Notifications
You must be signed in to change notification settings - Fork 313
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
Instructor Assessment Access Overrides #9103
base: master
Are you sure you want to change the base?
Instructor Assessment Access Overrides #9103
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have reviewed and hereby sign the CLA |
recheck |
…ith build-core-images
…arrillo/PrairieLearn into instructorAccessOverrides
…arrillo/PrairieLearn into instructorAccessOverrides
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here's another pass. A lot of these comments were originally left on #7992 but were never addressed.
apps/prairielearn/src/migrations/20230531184500_assessment_access_policies.sql
Outdated
Show resolved
Hide resolved
...elearn/src/pages/instructorAssessmentAccessOverrides/instructorAssessmentAccessOverrides.ejs
Outdated
Show resolved
Hide resolved
...ielearn/src/pages/instructorAssessmentAccessOverrides/instructorAssessmentAccessOverrides.js
Outdated
Show resolved
Hide resolved
...ielearn/src/pages/instructorAssessmentAccessOverrides/instructorAssessmentAccessOverrides.js
Outdated
Show resolved
Hide resolved
...ielearn/src/pages/instructorAssessmentAccessOverrides/instructorAssessmentAccessOverrides.js
Outdated
Show resolved
Hide resolved
apps/prairielearn/src/migrations/20230531184500_assessment_access_policies.sql
Outdated
Show resolved
Hide resolved
Im having some issues with merge conflicts regarding selectAuthzAssessment. Will continue working on this today just wanted to give a heads up |
@elisacarrillo sounds good, let me know if you need help getting the conflicts resolved! |
Hi, Thank you so much I am having issues with the selectAuthzAssessment feature code added in 0b3ca7a. Specifically
I was able to fix the merge issue but am unsure how to fix this linting issue. I have tried to add the /index.ts extension but it creates other issues when running. Would appreciate any advice! The most recent code is pushed. Thanks in advance! |
Try pattern matching against other code in this PR. For instance, take a look at the relative imports in |
…arrillo/PrairieLearn into instructorAccessOverrides
...elearn/src/pages/instructorAssessmentAccessOverrides/instructorAssessmentAccessOverrides.ejs
Outdated
Show resolved
Hide resolved
...elearn/src/pages/instructorAssessmentAccessOverrides/instructorAssessmentAccessOverrides.ejs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mwest1066 I'm wondering if we should special-case authz_mode == 'Exam'
here so that instructors can't shoot themselves in the foot when using PrairieTest? Specifically, I'm thinking that perhaps we should ignore anything in assessment_access_policies
when authz_mode === 'Exam'
.
Even then, I guess one could still shoot oneself in the foot with access overrides: if a student has a PT reservation, the current implementation short-circuits and doesn't do the usual "block in public mode with active PT reservation" stuff. This would be a horribly contrived situation, and in this situation the student could already access things from outside a CBTF if such an override were in place...
I'm not sure what the right thing to do here is, but we should have a think about how access overrides interact with PT and exam mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree that we don't want access overrides to be used for providing access to PT-controlled exams (of course PT already has overrides for that) and we want to help people avoid footguns here. Let's add this to our list of planning topics as a near-term item to think about more carefully?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a note in the planning issue.
...elearn/src/pages/instructorAssessmentAccessOverrides/instructorAssessmentAccessOverrides.ejs
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #9103 +/- ##
==========================================
- Coverage 67.01% 66.59% -0.43%
==========================================
Files 458 460 +2
Lines 71353 71944 +591
Branches 5719 5719
==========================================
+ Hits 47820 47913 +93
- Misses 23104 23601 +497
- Partials 429 430 +1 ☔ View full report in Codecov by Sentry. |
Modifications from #7992
and fixed the tracking issues from #9050