Skip to content

[Feature:InstructorUI] Filter Withdrawn Students#11036

Closed
yanliw123 wants to merge 41 commits intomainfrom
remove-withdraw-students-from-TAview
Closed

[Feature:InstructorUI] Filter Withdrawn Students#11036
yanliw123 wants to merge 41 commits intomainfrom
remove-withdraw-students-from-TAview

Conversation

@yanliw123
Copy link
Copy Markdown
Contributor

@yanliw123 yanliw123 commented Oct 25, 2024

Why is this change important / necessary?

Closes #11007
TAs and instructors have no way to see if any students are withdrawn or auditing their course, causing unnecessary worry if they are skipping class / missing assignments.

What is the new behavior?

There is now an option to filter auditing/withdrawn students on checkpoint/numeric lab and the detail grading pages.

UI Change: This new option is included with other existing toggle buttons such as "View Your Sections" and "Switch to Random Order." Since the location of those buttons restricted the addition of the new "Hide Withdrawn Students" toggle, this PR also refactors the UI by converting the buttons to radios, and moving them to the right where there is more space (see the screenshots below).

Steps to test

  1. login as instructor
  2. navigate to the manage students page
  3. edit student -> change some several student registration types to withdrawn
  4. navigate to a checkpoint/numeric lab, see checkbox
  5. navigate to Gradeables -> Grade / Preview Grading -> see filter withdrawn student button
  6. test if withdrawn student is filtered, and existing buttons retain functionality

Before

TA View before grading 4k ultra
Grade released before ta view 4k

After

grade details for TA page gradeable after 4k
Grades Released Lab with the new Option 4k after

@yanliw123 yanliw123 requested a review from IDzyre November 5, 2024 19:14
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 12, 2024

Codecov Report

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

Project coverage is 19.41%. Comparing base (4400faa) to head (bfedacc).
Report is 11 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #11036      +/-   ##
============================================
+ Coverage     11.66%   19.41%   +7.75%     
- Complexity        0     9096    +9096     
============================================
  Files            28      235     +207     
  Lines          4631    32306   +27675     
  Branches        460      460              
============================================
+ Hits            540     6273    +5733     
- Misses         3635    25577   +21942     
  Partials        456      456              
Flag Coverage Δ
autograder ?
js 4.65% <ø> (ø)
php 19.51% <0.00%> (?)
submitty_daemon_jobs 88.88% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@williamjallen
Copy link
Copy Markdown
Member

This still needs a functionality review and initial approval before maintainer review. Moving back to "Seeking Reviewer".

ajiang024
ajiang024 previously approved these changes Jan 17, 2025
Copy link
Copy Markdown

@ajiang024 ajiang024 left a comment

Choose a reason for hiding this comment

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

This works as specified in the testing instructions. I tested the functions for both TAs and instructors, and for both of them, the withdrawn students are correctly filtered when the box is checked off.
I would recommend someone with more PHP experience to review the code. Testing-wise, it looks good to me.

@github-actions github-actions bot removed the Abandoned PR - Needs New Owner No activity on PR for more than 2 weeks -- seeking new owner to complete label Jan 18, 2025
polibear21
polibear21 previously approved these changes Jan 21, 2025
Copy link
Copy Markdown

@polibear21 polibear21 left a comment

Choose a reason for hiding this comment

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

I followed the testing instructions and the website functions exactly as described in the pull request. When I check the box of "Hide withdrawn students", students withdrawn from the course do not show up in the list. Someone with more PHP experience should review the exact PHP code. The UI and functionality of the PR looks good.

Copy link
Copy Markdown
Member

@williamjallen williamjallen left a comment

Choose a reason for hiding this comment

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

This work looks pretty good overall and should be good to merge once these minor nitpick comments are resolved. Please also improve the PR description. The PR should clearly list before and after screenshots, along with a clear description of the work completed. Please also use a GitHub keyword like "closes #xyx" to automatically close the issue linked in the PR description when this gets merged.

const anon_status = $('[data-testid="toggle-anon-button"]');
Cookies.set(`default_anon_mode_${gradeable_id}_override`, 'on');
if (Cookies.get(`anon_mode_${gradeable_id}`) === undefined) {
Cookies.set(`anon_mode_${gradeable_id}`, 'off');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do you need to set the status of anon_status here? I guess if it defaults to unchecked that's good enough?

Troy-bailan-King and others added 6 commits February 3, 2025 14:10
Co-authored-by: William Allen <16820599+williamjallen@users.noreply.github.com>
Co-authored-by: William Allen <16820599+williamjallen@users.noreply.github.com>
Co-authored-by: William Allen <16820599+williamjallen@users.noreply.github.com>
Co-authored-by: William Allen <16820599+williamjallen@users.noreply.github.com>
Co-authored-by: William Allen <16820599+williamjallen@users.noreply.github.com>
@github-actions github-actions bot added the Abandoned PR - Needs New Owner No activity on PR for more than 2 weeks -- seeking new owner to complete label Feb 19, 2025
@JManion32 JManion32 self-assigned this Jun 16, 2025
@JManion32 JManion32 removed the Abandoned PR - Needs New Owner No activity on PR for more than 2 weeks -- seeking new owner to complete label Jun 17, 2025
@JManion32 JManion32 changed the title [Feature:InstructorUI] filter withdrawn student function [Feature:InstructorUI] Filter Withdrawn Students in Lab and Grading Jun 17, 2025
@JManion32 JManion32 dismissed stale reviews from polibear21 and ajiang024 June 17, 2025 16:36

stale

@JManion32 JManion32 changed the title [Feature:InstructorUI] Filter Withdrawn Students in Lab and Grading [Feature:InstructorUI] Filter Withdrawn Students Jun 17, 2025
@JManion32 JManion32 dismissed williamjallen’s stale review June 17, 2025 17:32

Resolved current requested changes, PR still needs work before re-review

The refactor is causing issues to other buttons. This PR adds a new feature. While it would be a positive for our codebase, refactoring the code of the other buttons is beyond the scope of this PR. I'm committing this so I can view the diff.
@JManion32
Copy link
Copy Markdown
Contributor

@yanliw123 @Troy-bailan-King To complete this PR, I found it easiest to create a new branch in order to better integrate changes from both this branch and main. #11792 supersedes this one and includes all of your commits. Thank you both for your contributions!

@JManion32 JManion32 closed this Jun 20, 2025
bmcutler pushed a commit that referenced this pull request Jun 27, 2025
## Why is this change important / necessary?
Closes #11007 , supersedes #11036
TAs and instructors have no way to see if any students are withdrawn or
auditing their course, causing unnecessary worry if they are skipping
class / missing assignments.

## What is the new behavior?
There is now an option to filter auditing/withdrawn students on
checkpoint/numeric lab and the detail grading pages.

UI Change: This new option is included with other existing toggle
buttons such as "View Your Sections" and "Switch to Random Order." Since
the location of those buttons restricted the addition of the new "Hide
Withdrawn Students" toggle, this PR also refactors the UI by converting
the buttons to radios, and moving them to the right where there is more
space (see the screenshots below).

## Steps to test
1. login as instructor
2. navigate to the manage students page
3. edit student -> change some several student registration types to
withdrawn
4. navigate to a checkpoint/numeric lab, see checkbox
5. navigate to Gradeables -> Grade / Preview Grading -> see filter
withdrawn student button
6. test if withdrawn student is filtered, and existing buttons retain
functionality

## Before
![TA View before grading 4k
ultra](https://github.com/user-attachments/assets/1496cffe-fa63-4598-aada-2f55737523e4)
![Grade released before ta view
4k](https://github.com/user-attachments/assets/c77860e5-c0d4-4bca-b8fc-76047aa3c2b3)

## After
![new grade inquiries
picture](https://github.com/user-attachments/assets/0deda1a6-ea4a-4ac8-a528-a8353fa5628d)
![new hide withdrawn students
lab](https://github.com/user-attachments/assets/fa651c23-e0fc-4209-b2ff-366a3de54571)

---------

Co-authored-by: Yanli Wang <wang970753651@gmail.com>
Co-authored-by: Yanli Wang <114595115+yanliw123@users.noreply.github.com>
Co-authored-by: Cameron Peterson <46759635+IDzyre@users.noreply.github.com>
Co-authored-by: Troy-bailan-King <liny17@rpi.edu>
Co-authored-by: Troy-bailan-King <97757033+Troy-bailan-King@users.noreply.github.com>
Co-authored-by: William Allen <16820599+williamjallen@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Remove "withdrawn" students from TA grading view

7 participants