openedx / modular-learning

3 stars 1 forks source link

[Course Search] Update search index when tags are changed #197

Closed bradenmacdonald closed 7 months ago

bradenmacdonald commented 8 months ago

"As a course author, I want to be able to search for course content using tags."

Builds on #195 and #196.

Requirements:

  1. When a user edits the tags of a course component in Studio (including a section, subsection, unit, problem, etc.), the corresponding document in the search index should be updated as well.
  2. If the "reindex all courses/libraries" command is currently running, make sure it doesn't undo these changes. (The changes should either (A) be applied to the new index [perhaps in addition to the old/current index] or (B) be queued until after the reindex is complete.)

Ideally:

  1. If the search engine (e.g. Meilisearch) is offline/down at the moment the change is made, the update will be queued; once the search engine is back online, the index will be updated.
  2. This would work for when tags are changed on (v2) library content items too.

Notes: