Skip to content

[Bugfix:InstructorUI] Notebook Permissions fix#12060

Merged
bmcutler merged 2 commits intomainfrom
notebook-perms-fix
Sep 8, 2025
Merged

[Bugfix:InstructorUI] Notebook Permissions fix#12060
bmcutler merged 2 commits intomainfrom
notebook-perms-fix

Conversation

@williamschen23
Copy link
Copy Markdown
Contributor

@williamschen23 williamschen23 commented Sep 6, 2025

Why is this Change Important & Necessary?

On our production system, the TA's group is course_<courseName>_tas_www, but the notebook builder expects <courseName>_tas_www. In addition to not being able to make new notebook gradeables on the course, the permissions if we were to make the gradeables would be wrong as well, as the group would not exist.

What is the New Behavior?

Uses a more dynamic method of determining the group. I cannot find a better solution than looking at the config file.

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

https://submitty.org/sysadmin/configuration/course_creation
Make the group course_<courseName>_tas_www. Make the course just . See the error. See that it fixed with this PR

Automated Testing & Documentation

We do not have testing that test command line method of creating courses and users.

Other information

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 6, 2025

Codecov Report

❌ Patch coverage is 0% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.70%. Comparing base (d2cf9f0) to head (b1b2dfa).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12060      +/-   ##
============================================
- Coverage     21.70%   21.70%   -0.01%     
- Complexity     9582     9584       +2     
============================================
  Files           268      268              
  Lines         36560    36565       +5     
  Branches        475      475              
============================================
  Hits           7936     7936              
- Misses        28153    28158       +5     
  Partials        471      471              
Flag Coverage Δ
autograder 21.31% <ø> (ø)
js 2.07% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.72% <0.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.

@bmcutler bmcutler merged commit 7b60456 into main Sep 8, 2025
25 checks passed
@bmcutler bmcutler deleted the notebook-perms-fix branch September 8, 2025 02:52
@github-project-automation github-project-automation bot moved this from Seeking Reviewer to Done in Submitty Development Sep 8, 2025
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.

2 participants