Skip to content

[Feature:InstructorUI] Give Instructor Read-Only DockerUI page#12346

Merged
bmcutler merged 13 commits intomainfrom
instructor-dockerui
Feb 5, 2026
Merged

[Feature:InstructorUI] Give Instructor Read-Only DockerUI page#12346
bmcutler merged 13 commits intomainfrom
instructor-dockerui

Conversation

@williamschen23
Copy link
Contributor

@williamschen23 williamschen23 commented Jan 23, 2026

Why is this Change Important & Necessary?

Fix #12345
Instructors need to be able to see what Docker containers are available for autograding. We can do this by giving instructors access to DockerUI, but don't allow them to add or remove dockerUI as those are for faculty members

What is the New Behavior?

Instructors can access DockerUI, but cannot update machines and cannot add images to capabilities.
Instructor:
image
image

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

Test that instructors (manne for sample course) can access dockerui and faculty (instructor) can edit stuff in dockerUI

Automated Testing & Documentation

Cypress test to double check that manne cannot access anything in dockerui is included

Other information

Barb, the text for not being able to add capabilities to images is "You do not have permission to add images to capabilities. Please contact a faculty member or sysadmin for assistance." Adjust this wording (or request other ones) as needed

@codecov
Copy link

codecov bot commented Jan 23, 2026

Codecov Report

❌ Patch coverage is 20.00000% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.67%. Comparing base (443d6a3) to head (0127479).
⚠️ Report is 32 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12346      +/-   ##
============================================
- Coverage     21.69%   21.67%   -0.03%     
- Complexity     9617     9623       +6     
============================================
  Files           268      268              
  Lines         36115    36171      +56     
  Branches        478      486       +8     
============================================
+ Hits           7836     7840       +4     
- Misses        27805    27849      +44     
- Partials        474      482       +8     
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.04% <ø> (-0.03%) ⬇️
migrator 100.00% <ø> (ø)
php 20.69% <20.00%> (+<0.01%) ⬆️
python_submitty_utils 80.08% <ø> (ø)
submitty_daemon_jobs 90.72% <ø> (ø)

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.

@williamschen23 williamschen23 changed the title [Feature:InstructorUI] Give Instructor Read-Only DockerUI access [Feature:InstructorUI] Give Instructor Read-Only Docker access Jan 23, 2026
@williamschen23 williamschen23 changed the title [Feature:InstructorUI] Give Instructor Read-Only Docker access [Feature:InstructorUI] Give Instructor Read-Only DockerUI page Jan 23, 2026
Copy link
Contributor

@Rkoester47 Rkoester47 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 steps outlined in the PR for my testing and found that the changes are behaving as intended. While logged in as manne, I was able to view the DockerUI page but had no ability to edit anything. When signed in as instructor, I was able to access the same DockerUI page but had full access to edit items on the page.

@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Awaiting Maintainer Review in Submitty Development Jan 23, 2026
@hyeenaa hyeenaa self-requested a review January 27, 2026 21:32
@automateprojectmangement automateprojectmangement bot moved this from Awaiting Maintainer Review to In Review in Submitty Development Jan 27, 2026
Copy link
Contributor

@hyeenaa hyeenaa left a comment

Choose a reason for hiding this comment

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

Before fixes, a sample instructor , (manne) cannot access dockerui on the main page at all, but faculty can.

After testing the new branch, the sample instructor can indeed look at the docker ui, but cannot edit details, as outlined in the fixes.

@github-project-automation github-project-automation bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Jan 27, 2026
@github-project-automation github-project-automation bot moved this from Awaiting Maintainer Review to Work in Progress in Submitty Development Jan 31, 2026
Copy link
Member

@cjreed121 cjreed121 left a comment

Choose a reason for hiding this comment

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

Code looks good to me. Have not tested locally. Thanks for making changes

@github-project-automation github-project-automation bot moved this from Work in Progress to Awaiting Maintainer Review in Submitty Development Jan 31, 2026
@cjreed121 cjreed121 moved this from Awaiting Maintainer Review to Ready to Merge in Submitty Development Jan 31, 2026
@williamschen23 williamschen23 moved this from Ready to Merge to Work in Progress in Submitty Development Jan 31, 2026
@williamschen23 williamschen23 moved this from Work in Progress to Ready to Merge in Submitty Development Feb 1, 2026
@bmcutler bmcutler merged commit ecc8a2e into main Feb 5, 2026
25 checks passed
@github-project-automation github-project-automation bot moved this from Ready to Merge to Done in Submitty Development Feb 5, 2026
@bmcutler bmcutler deleted the instructor-dockerui branch February 5, 2026 21:59
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.

Read Only Access to Docker UI page for users who are non faculty users

5 participants