Skip to content

[Bugfix:Forum] Enable discussion forum by default#12414

Merged
bmcutler merged 6 commits intomainfrom
default-discussion-forum
Feb 20, 2026
Merged

[Bugfix:Forum] Enable discussion forum by default#12414
bmcutler merged 6 commits intomainfrom
default-discussion-forum

Conversation

@Eli-J-Schwartz
Copy link
Contributor

Why is this Change Important & Necessary?

Fixes #12335

What is the New Behavior?

Previously, the discussion forum would not be created by default when a course is made. Now, the discussion forum is created by default.

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

Test old behavior:

  1. Create new course (see https://submitty.org/sysadmin/configuration/course_creation for instructions)
  2. Observe that discussion forum is disabled
  3. Enable Discussion forum in course settings
  4. Observe that discussion forum is now enabled
  5. Try making a forum post to test functionality

Test new behavior:

  1. Create new course
  2. Observe that discussion forum is enabled
  3. Try making a forum post to test functionality

Automated Testing & Documentation

This feature is not yet tested.

Other information

Since this PR removes the automatic creation of the default categories when the enable forum checkbox is toggled, a migration has been added that inserts the 4 default forum categories into existing classes, if none are present.

@codecov
Copy link

codecov bot commented Feb 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.72%. Comparing base (2879a09) to head (ab2bef9).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main   #12414      +/-   ##
============================================
- Coverage     21.73%   21.72%   -0.02%     
+ Complexity     9623     9619       -4     
============================================
  Files           268      268              
  Lines         36167    36161       -6     
  Branches        486      486              
============================================
- Hits           7862     7856       -6     
  Misses        27823    27823              
  Partials        482      482              
Flag Coverage Δ
autograder 21.39% <ø> (ø)
js 2.04% <ø> (ø)
migrator 100.00% <ø> (ø)
php 20.75% <ø> (-0.02%) ⬇️
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 self-requested a review February 9, 2026 20:59
@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 tested both the original functionality and the new functionality of the discussion forum being enabled by default. Everything seems to work as intended. I appreciated the extensive comments in migration/migrator/migrations/course/20260202162817_initialize_discussion_categories.py as someone that is new to Python. My only suggestion is to update the PR to include the link (https://submitty.org/sysadmin/configuration/course_creation) to the course creation guide, as I personally didn't know that the course creation button on the Submitty VM doesn't work.

@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 was able to test the functionality of this PR and can confirm that discussion forum is enabled by default when creating a course while on this branch. On other branches, I was able to observe that the discussion forum is not enabled by default, as described by the PR. The implementation of this change looks reasonable, and the functionality of the forum itself remains intact while using a course created on this branch. Creating a post, deleting a post and replying to a post still all work as originally intended.

@bmcutler bmcutler merged commit c172c86 into main Feb 20, 2026
25 checks passed
@bmcutler bmcutler deleted the default-discussion-forum branch February 20, 2026 17:00
@github-project-automation github-project-automation bot moved this from Awaiting Maintainer Review to Done in Submitty Development Feb 20, 2026
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.

Discussion Forum, enabled by default

5 participants