[Bugfix:TAGrading] TA Peer Grading Access#12889
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #12889 +/- ##
============================================
+ Coverage 21.50% 21.51% +0.01%
- Complexity 9896 9905 +9
============================================
Files 268 268
Lines 36968 36974 +6
Branches 495 495
============================================
+ Hits 7951 7956 +5
- Misses 28526 28527 +1
Partials 491 491
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
roye2
left a comment
There was a problem hiding this comment.
The overall functionality of this PR looks great and I agree with the code changes. I just have a couple requests that I think will make the grading ui and wording more clear for TAs who only have access to peer grading:
- I think we should hide the Non Peer Gradiing Manual Total from the TA if they do not have access.
- I think we should change the button that says 'Grading Incomplete' and the question circles to only consider the peer grading component, if that's all the TA has access to.
roye2
left a comment
There was a problem hiding this comment.
The functionality and the code look good. I was able to access peer grading as the TA (registered as a student) user even if the grading was for Instructor only. One UI thing I noticed, something looks weird with the stoplights now:
Also, I noticed a discrepancy when grading a peer gradeable as the instructor and ta when the ta is not a student. The Ta and Instructor see different things for 'individual peer grading total' despite the fact that neither of them graded this with the peer components. Is this intended behavior? ** This is a the same as on main. ** I can make an issue about it if necessary but I just thought I'd mention it.
### Why is this Change Important & Necessary? Fixes #[6367](Submitty#6367) ### What is the New Behavior? TAs now have peer grading access to gradeables that they don't have higher level grading access too. Before, even though they should have had peer grading access, the restrictions on higher level grading access of a gradeable blocked peer grading as well. Now they have peer grading access while still restricting their actual grading access as well. Although a Gradeable may have non-peer graded components, a TA without grading permissions can only see peer grading components: <img width="1892" height="115" alt="image" src="https://github.com/user-attachments/assets/7e0ffa7c-f01e-4c83-a8f1-7fd3fb64d1cf" /> <img width="1909" height="348" alt="image" src="https://github.com/user-attachments/assets/44b38d54-2760-4f08-8c20-122d5e97c6ab" /> ### What steps should a reviewer take to reproduce or test the bug or new feature? 1. As an Instructor, create two gradeables (Both with a peer grading component and a non-peer grading component): a. Make one gradeable Instructor Only grading access b. Make the other have a minimum access of a Limited Access Grader 2. Make sure to generate Peer Matrix with All Grade All 3. As a student, make submissions on both gradeables 4. As a TA, attempt to grade the Instructor Only gradeable - Verify that you can reach the rubric screen for the student's submission and only see the peer grading component 5. Still as a TA, do the same for the other full access gradeable - Verify that you can reach the rubric screen for the student's submission and see both components ### Extra changes made - Hide non peer components on details page from peer only graders - Fix grade button text on details page to say "Grade" for peer graders - Fix rubric to only show Peer Grading total for peer only graders


Why is this Change Important & Necessary?
Fixes #6367
What is the New Behavior?
TAs now have peer grading access to gradeables that they don't have higher level grading access too. Before, even though they should have had peer grading access, the restrictions on higher level grading access of a gradeable blocked peer grading as well. Now they have peer grading access while still restricting their actual grading access as well.
Although a Gradeable may have non-peer graded components, a TA without grading permissions can only see peer grading components:


What steps should a reviewer take to reproduce or test the bug or new feature?
a. Make one gradeable Instructor Only grading access
b. Make the other have a minimum access of a Limited Access Grader
Extra changes made