Skip to content

fix: bring ulmo.1 discussion related changes#173

Merged
jcapphelix merged 7 commits intorelease-ulmofrom
cjoshi/discussion-ulmo.1
Mar 13, 2026
Merged

fix: bring ulmo.1 discussion related changes#173
jcapphelix merged 7 commits intorelease-ulmofrom
cjoshi/discussion-ulmo.1

Conversation

@jcapphelix
Copy link

@jcapphelix jcapphelix commented Mar 10, 2026

Description

This PR brings the commits related to removal of waffle flag ENABLE_FORUM_V2 and dependency removal of cs_comments_service of Open edX to python forum repo.

This PR also resolves some of the conflicts between 2U Features such as AI moderation, Soft delete, Bulk Delete etc (list of commits mentioned here )

Waffle Flag usage

Note

Even though we have resolved a few conflicts here, similar conflicts may arise when entire ulmo.1 is merged.
These conflicts are result of us trying to maintain or preserve the delta of discussion features.

Deadline

Rush

taimoor-ahmed-1 and others added 7 commits March 11, 2026 05:49
This removes the last remaining code that called out to the
cs_comments_service. All forums backend logic now uses the v2 API from
the forum repo (https://github.com/openedx/forum). This does NOT remove
MongoDB support.

This also implements the endpoint to retrieve all comments for a user
using the new forum backend. This is not actually called from any known
frontend code, but it has not been formally deprecated as an endpoint,
and therefore needs to be supported.

As part of the cleanup, the ENABLE_FORUM_V2 course waffle flag has also
been removed, along with all remaining switching logic that used to
route between the Python API in the forum repo and service calls to the
cs_comments_service Ruby service.

Other endpoints affected (switching logic removed):

* get course commentable counts
* get/update course user stats
* update comment/thread/user
* delete thread (implementation moved to forum repo)
* follow
* retire user

This is part of the following overall DEPR ticket:
  https://github.com/openedx/cs_comments_service/issues/437
This commit removes all remaining references to cs_comments_service
except the ForumsConfig model. The only purpose of keeping the model
and table around is so that the webapp processes don't start throwing
errors during deployment because they're running the old code for a
few minutes after the database migration has run. We can drop
ForumsConfig and add the drop-table migration after Ulmo is cut.

Also bumps the openedx-forum version to 0.3.7

---------

Co-authored-by: Taimoor  Ahmed <taimoor.ahmed@A006-01711.local>
This was originally permitted for forum moderators and course staff as a
way to fight spam, but it was decided that this functionality was too
dangerous to open up that widely. There are some tentative plans around
how to make this a more fully supported feature, but until then, we're
restricting this to global staff on the Ulmo release branch as an
interim measure. The frontend was already disabled in the Ulmo release,
meaning that this will be a backend-only API (i.e. if you really know
what you're doing and absolutely need this functionality).

The assumption is that this feature will continue to be developed on the
master branch and will be in better shape for Verawood.
…) (openedx#37688)

Prevents notification failures with MySQL backend by ensuring signals
are only sent after database transactions commit. This fixes race
conditions where Celery workers couldn't see newly created threads.

- Added send_signal_after_commit() helper function
- Updated both thread creation paths to use the helper

Co-authored-by: Taimoor  Ahmed <taimoor.ahmed@A006-01711.local>
Co-authored-by: Taimoor  Ahmed <taimoor.ahmed@A006-01711.local>
@jcapphelix jcapphelix force-pushed the cjoshi/discussion-ulmo.1 branch from a53591a to 24edbe7 Compare March 11, 2026 09:56
@jcapphelix jcapphelix changed the title Cjoshi/discussion ulmo.1 fix: bring ulmo.1 discussion related changes Mar 11, 2026
@jcapphelix jcapphelix marked this pull request as ready for review March 12, 2026 07:45
@jcapphelix jcapphelix requested review from Copilot and removed request for Copilot March 12, 2026 07:46
@jcapphelix jcapphelix requested a review from a team March 12, 2026 07:46
@jcapphelix jcapphelix merged commit 6ebe8c0 into release-ulmo Mar 13, 2026
68 checks passed
@jcapphelix jcapphelix deleted the cjoshi/discussion-ulmo.1 branch March 13, 2026 13:03
jcapphelix added a commit that referenced this pull request Mar 16, 2026
Reverts #173

Because, shifting to V2 of Forum started giving errors in production.

It gave a rise to "Slow Queries" in production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants