openedx / openedx/openedx-platform
bulk_delete_user_posts REST API issues
Open
@ormsbee is already working on this.
Since Nov 25, 2025.
- Dominant language
- Python
- Stars
- 8.2k
- Forks
- 4.4k
- Avg merge
- 6d 18h
- Merged PRs (30d)
- 42
Description
It was originally implemented by:
Issues with the original implementation:
- It makes user-facing changes but did not go through community product review
- Documentation incorrectly states that deleted posts are limited to course_id; they actually span across the entire org containing course_id if course_or_org=="org".
- Related to ^, it allows anyone with staff or forum mod role in
course-v1:MyOrg+X+Yto bulk-delete posts across all ofMyOrg. This is a security flaw. - Does not use api_doc_tools; documentation can only be viewed in the codebase.
- Does not work with MySQL-backed forums
- Adds utility code which reaches directly in MongoDB-backed forums interface
We are reverting the frontend changes:
For the backend, we will do one of the following:
- Minimizing impact by down-scoping the backend API to global staff only: https://github.com/openedx/edx-platform/pull/37401
- Put it behind a feature flag
- Revert the backend API entirely: https://github.com/openedx/edx-platform/pull/37403
- Revert the API in Ulmo but leave it in master
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.