Skip to content

Fix discussion API topic filtering in Teak release#318

Open
DeimerM wants to merge 7 commits into
ednx-release/teak.masterfrom
dmh/fix-api-discussions
Open

Fix discussion API topic filtering in Teak release#318
DeimerM wants to merge 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.

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
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.

3 participants