Skip to content

Fix discussion API topic filtering in Teak release#318

Merged
DeimerM merged 7 commits into
ednx-release/teak.masterfrom
dmh/fix-api-discussions
May 25, 2026
Merged

Fix discussion API topic filtering in Teak release#318
DeimerM merged 7 commits into
ednx-release/teak.masterfrom
dmh/fix-api-discussions

Conversation

@DeimerM
Copy link
Copy Markdown

@DeimerM DeimerM commented May 21, 2026

Description

A bug was identified in the Teak release where discussions were not displaying correctly. Specifically, when a post was created within a discussion linked to a related topic, clicking on that topic failed to show the discussion.

This issue is regression-specific to the Teak release; the Ulmo release functions as expected.

Solution

To resolve this, I compared the Teak codebase with Ulmo. The Ulmo release included API refactoring to support Forum V2. I identified the relevant commits and cherry-picked the non-conflicting fixes that resolve this behavior without introducing unwanted new features to the Teak release.

Backports

The following backports were applied in order to fix this issue:

How to Test

  1. Build the Open edX image using the branch dmh/fix-api-discussions.
  2. Deploy the image to a Teak release instance.
  3. Verify discussion functionality by performing the following tests:
  • Admin Post: Create a post using an administrator account.
  • Learner Post: Create a post using a learner account.
  • Topic Filter: Verify that discussions appear correctly when filtering by topics.
  • User Filter: Verify that discussions appear correctly when filtering by user.
  • Unit Relevance: Verify that discussions appear in the course unit related to the topic.

ayesha-waris and others added 7 commits May 21, 2026 12:33
* fix: stoped group TA to see the posts of other cohorts

* test: updated test cases

---------

Co-authored-by: Ayesha Waris <ayesha.waris@192.168.10.31>
This will force the use of the new v2 forums API for pinning/unpinning.
This will force the use of the new v2 forum's APIs for flaging/unflaging.
This will force the use of the new v2 forum's APIs for voting/unvoting.
This PR fixes following filter on the discussions module by replacing  forum api to  api since we only need threads that are subscribed/followed by the requesting user.
This will force the use of the new v2 forum's APIs for searching.
- This will force the use of the new v2 forum's APIs for subscriptions.
@DeimerM DeimerM requested a review from a team May 21, 2026 18:11
@DeimerM DeimerM merged commit c1b0228 into ednx-release/teak.master May 25, 2026
46 of 47 checks passed
DeimerM added a commit that referenced this pull request May 25, 2026
)

* fix: stoped group TA to see the posts of other cohorts (openedx#36765)

* fix: stoped group TA to see the posts of other cohorts

* test: updated test cases

---------



* feat!: remove cs_comments_service support for forums pin API

This will force the use of the new v2 forums API for pinning/unpinning.

* feat!: remove cs_comments_service support for forum's flag APIs

This will force the use of the new v2 forum's APIs for flaging/unflaging.

* feat!: remove cs_comments_service support for forum's vote APIs

This will force the use of the new v2 forum's APIs for voting/unvoting.

* fix: Discussion following posts filter
This PR fixes following filter on the discussions module by replacing  forum api to  api since we only need threads that are subscribed/followed by the requesting user.

* feat!: remove cs_comments_service support for forum's search APIs

This will force the use of the new v2 forum's APIs for searching.

* feat!: remove cs_comments_service support for forum's subscription APIs
- This will force the use of the new v2 forum's APIs for subscriptions.

---------

Co-authored-by: ayesha waris <73840786+ayesha-waris@users.noreply.github.com>
Co-authored-by: Ayesha Waris <ayesha.waris@192.168.10.31>
Co-authored-by: Taimoor Ahmed <68893403+taimoor-ahmed-1@users.noreply.github.com>
Co-authored-by: Ali-Salman29 <ali.salman@arbisoft.com>
Co-authored-by: Taimoor  Ahmed <taimoor.ahmed@A006-01711.local>
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.

4 participants