Skip to content

[Bugfix:System] Fix course creation page#12418

Merged
bmcutler merged 3 commits intomainfrom
fix_course_creation_page
Feb 15, 2026
Merged

[Bugfix:System] Fix course creation page#12418
bmcutler merged 3 commits intomainfrom
fix_course_creation_page

Conversation

@cjreed121
Copy link
Member

Why is this Change Important & Necessary?

When you create a course in the "New Course" page, the course never gets created. An error is created in the /var/local/submitty/logs/course_creation/ directory.

What is the New Behavior?

Courses are created as usual.

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

Try to create a new course in the "New Course" page and verify it is properly created and you can see it.

Automated Testing & Documentation

Unit tests added

@codecov
Copy link

codecov bot commented Feb 8, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 21.73%. Comparing base (d96c748) to head (6b12ca1).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12418      +/-   ##
============================================
+ Coverage     21.67%   21.73%   +0.06%     
  Complexity     9623     9623              
============================================
  Files           268      268              
  Lines         36171    36167       -4     
  Branches        486      486              
============================================
+ Hits           7840     7862      +22     
+ Misses        27849    27823      -26     
  Partials        482      482              
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.04% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.77% <66.66%> (+0.07%) ⬆️
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.

@roye2 roye2 assigned roye2 and unassigned roye2 Feb 9, 2026
@roye2 roye2 self-requested a review February 9, 2026 22:44
@automateprojectmangement automateprojectmangement bot moved this from Seeking Reviewer to In Review in Submitty Development Feb 9, 2026
Copy link
Contributor

@roye2 roye2 left a comment

Choose a reason for hiding this comment

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

I did a functionality review only and found that the course was created from the course creation page and functioned correctly for both instructors and students.

@github-project-automation github-project-automation bot moved this from In Review to Awaiting Maintainer Review in Submitty Development Feb 9, 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 checked and was able to reproduce the issue on main. I was able to see the error created in var/local/submitty/logs/course_creation. On this branch, the issue is resolved and I was able to create a new course immediately. The code implementation makes sense and is a good solution, also updating references to 'Semester' to be 'Term' instead to help consistency within Submitty.

Copy link
Contributor

@John-Roy123 John-Roy123 left a comment

Choose a reason for hiding this comment

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

I was able to replicate the issue on main - attempting to generate a course resulted in a popup saying "request was sent" with the course never appearing. After running your changes I was able to create a new course and have it appear after a refresh.

I also appreciate the code changes to have the code be more explicit/readable in what information the variables contain.

@bmcutler bmcutler merged commit dc5cb8a into main Feb 15, 2026
26 checks passed
@bmcutler bmcutler deleted the fix_course_creation_page branch February 15, 2026 04:37
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.

5 participants