Skip to content

[Bugfix:InstructorUI] Fix Manage Students Toggle Columns#12953

Merged
bmcutler merged 3 commits into
mainfrom
toggle-columns-fix
Jun 26, 2026
Merged

[Bugfix:InstructorUI] Fix Manage Students Toggle Columns#12953
bmcutler merged 3 commits into
mainfrom
toggle-columns-fix

Conversation

@roye2

@roye2 roye2 commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Why is this Change Important & Necessary?

Closes #12906 (toggle columns feature is broken)

What is the New Behavior?

Fixed a bug where the cookie (a string of 1's and 0's representing the active_columns) was not being set properly due to how PHP converts boolean values to strings.
Now, when using the Toggle Columns feature, the columns should properly be toggled on and off.

Screenshots

Here's an example with everything toggled on:
image

Here's an example with most things toggled off (not sure why you would want to do this particular combination)
image

What steps should a reviewer take to reproduce or test the bug or new feature?

  1. On main or before installing the changes, verify that the Toggle Columns feature does not work (columns are not actually toggled when setting them).
  2. As instructor, navigate to the 'Manage Students' page of a course
  3. Play with the toggle columns feature and test the toggling of all the columns.
  4. Additionally, test that the buttons inside the columns still work (though this shouldn't be affected).
  5. Test leaving the page / closing the tab and then coming back to verify that the cookie is saving correctly.

Automated Testing & Documentation

This is a simple bugfix and does not need to be covered by automated testing.

Other information

You may need to clear the site cookies before testing this feature.

@roye2 roye2 linked an issue Jun 24, 2026 that may be closed by this pull request
@github-project-automation github-project-automation Bot moved this to Seeking Reviewer in Submitty Development Jun 24, 2026
@roye2 roye2 changed the title [Bugfix:InstructorUI] Refactor StudentList.twig to use the Vue component [Bugfix:InstructorUI] Refactor StudentList.twig Toggle Columns Jun 24, 2026
@roye2
roye2 marked this pull request as draft June 24, 2026 21:11
@automateprojectmangement automateprojectmangement Bot moved this from Seeking Reviewer to Work in Progress in Submitty Development Jun 24, 2026
@codecov

codecov Bot commented Jun 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.40%. Comparing base (75511e4) to head (b43e231).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12953      +/-   ##
============================================
- Coverage     21.40%   21.40%   -0.01%     
  Complexity     9944     9944              
============================================
  Files           268      268              
  Lines         37124    37126       +2     
  Branches        494      494              
============================================
  Hits           7948     7948              
- Misses        28686    28688       +2     
  Partials        490      490              
Flag Coverage Δ
autograder 21.16% <ø> (ø)
js 2.01% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.44% <0.00%> (-0.01%) ⬇️
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 91.13% <ø> (ø)

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.

@roye2
roye2 marked this pull request as ready for review June 25, 2026 13:44
@automateprojectmangement automateprojectmangement Bot moved this from Work in Progress to Seeking Reviewer in Submitty Development Jun 25, 2026
@roye2 roye2 changed the title [Bugfix:InstructorUI] Refactor StudentList.twig Toggle Columns [Bugfix:InstructorUI] Fix Manage Students Toggle Columns Jun 25, 2026
@elsume

elsume commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

First confirmed the Toggle Columns feature for Manage Students does not work on main. Any changes to column selection aren't saved or applied.

Tested changes on macOS machine using Chrome browser. Toggle columns feature only started working after deleting active_student_columns cookie in DevTool's Application window. The new feature is working as expected and any buttons inside a column still work. When closing the tab, the columns are still configured the same way as it was last left.

Also tested changes on Safari browser. Because I likely had no existing cookies for the site, the feature worked immediately without needing to manually delete anything. When I switched back to main after testing the PR in Safari, the columns were still configured from the PR branch. I had to clear the cookie again for the toggle columns to function as expected on main.

Overall, the PR successfully fixes the toggle columns bug. One comment is that existing users with the old, broken cookie may need to delete it manually for the fix to take effect (as noted by Emma).

@dagemcn dagemcn left a comment

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.

I was able to verify that the columns to not update when on main. After checking out the branch and clearing my cookies, I was able to toggle columns. They persist through refreshed, changing pages, and logging out and back in. Code also looks good.

@github-project-automation github-project-automation Bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Jun 25, 2026
@bmcutler
bmcutler merged commit f83f67b into main Jun 26, 2026
32 checks passed
@bmcutler
bmcutler deleted the toggle-columns-fix branch June 26, 2026 04:16
jndlansh pushed a commit to jndlansh/Submitty that referenced this pull request Jul 1, 2026
)

### Why is this Change Important & Necessary?
Closes Submitty#12906 (toggle columns feature is broken)

### What is the New Behavior?
Fixed a bug where the cookie (a string of 1's and 0's representing the
active_columns) was not being set properly due to how PHP converts
boolean values to strings.
Now, when using the Toggle Columns feature, the columns should properly
be toggled on and off.

### Screenshots
Here's an example with everything toggled on:
<img width="1649" height="783" alt="image"
src="https://github.com/user-attachments/assets/2892f541-eb64-4eb2-bcca-6c3ec0dd9bc2"
/>

Here's an example with most things toggled off (not sure why you would
want to do this particular combination)
<img width="1652" height="733" alt="image"
src="https://github.com/user-attachments/assets/e0e1a0f2-cde4-4b66-a240-4d7f54e85655"
/>


### What steps should a reviewer take to reproduce or test the bug or
new feature?
0. On main or before installing the changes, verify that the Toggle
Columns feature does not work (columns are not actually toggled when
setting them).
1. As instructor, navigate to the 'Manage Students' page of a course
2. Play with the toggle columns feature and test the toggling of all the
columns.
3. Additionally, test that the buttons inside the columns still work
(though this shouldn't be affected).
4. Test leaving the page / closing the tab and then coming back to
verify that the cookie is saving correctly.

### Automated Testing & Documentation
This is a simple bugfix and does not need to be covered by automated
testing.

### Other information
You may need to clear the site cookies before testing this feature.
prestoncarman added a commit that referenced this pull request Jul 1, 2026
* main: (78 commits)
  [Bugfix:TAGrading] Auto-open single file (#12625)
  [Feature:InstructorUI] Add sortable columns to manage students (#12957)
  [Dependency] Bump php-ds/php-ds from 1.7.0 to 2.0.1 in /site (#12827)
  [Refactor:TAGrading] Events Infrastructure & StatusBanner (#12941)
  [Dependency] Bump sqlalchemy from 2.0.48 to 2.0.51 in /.setup/pip (#12884)
  [Bugfix:Developer] trust hashicorp for vagrant install (#12968)
  [Feature:TAGrading] Backend for submission clustering (#12886)
  [Bugfix:InstructorUI] Missing Subsection in the Edit User form (#12955)
  [Bugfix:Submission] Warning Banners Accessibility Fix (#12956)
  [Bugfix:System] Preserve signup fields (#12939)
  [Bugfix:InstructorUI] Fix Csv Download of Subsections (#12954)
  [Bugfix:InstructorUI] Fix Manage Students Toggle Columns (#12953)
  [Feature:TAGrading] Persistent Auto-Open (#12931)
  [Bugfix:Submission] Dot File Upload (#12924)
  [Refactor:System] Declutter workers (#12815)
  [Bugfix:Developer] save/restore autograding_containers.json (#12952)
  [Bugfix:InstructorUI] Create Course Validation (#12949)
  [Testing:Notifications] Fix grade_inquiries.spec.js (#12950)
  [UI/UX:System] Add fullscreen button vue component (#12936)
  [Bugfix:TAGrading] Student Name Resize (#12946)
  ...

# Conflicts:
#	.pylintrc
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.

'Toggle Columns' feature is broken

4 participants