openedx / openedx/openedx-platform

Delete course management command fails to clear Meilisearch

Open
#39,085 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.2k
Forks
4.4k
Avg merge
6d 18h
Merged PRs (30d)
42

Description

Note: We don't really support course deletion so this may be a low priority issue or "we need to solve this whole thing in a better way" issue, but I wanted to log it as a known thing.

Where: ./manage.py cms delete_course <key>course_deleted signal → listen_for_course_delete (search indexing). Tutor main, Meilisearch 1.36.

Finding: the delete succeeds, but the course-info index removal fails with Index tutor_course_info: Attribute course is not filterable (available: catalog_visibility, enrollment_end, language, modes, org), so a deleted course may linger in the catalog search index until the next full reindex.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the ./manage.py cms delete_course command, follow the course_deleted signal to listen_for_course_delete, and reproduce the Meilisearch 1.36 filterability error for the tutor_course_info index. Done means deleting a course also removes its course-info entry from the catalog search index without requiring a full reindex.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, search
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.