We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab25e2c commit 2c6c8cfCopy full SHA for 2c6c8cf
openedx/core/djangoapps/content/search/handlers.py
@@ -167,10 +167,13 @@ def library_collection_updated_handler(**kwargs) -> None:
167
log.error("Received null or incorrect data for event")
168
return
169
170
- update_library_collection_index_doc.delay(
+ # Update collection index synchronously to make sure that search index is updated before
171
+ # the frontend invalidates/refetches index.
172
+ # See content_library_updated_handler for more details.
173
+ update_library_collection_index_doc.apply(args=[
174
str(library_collection.library_key),
175
library_collection.collection_key,
- )
176
+ ])
177
178
179
@receiver(CONTENT_OBJECT_ASSOCIATIONS_CHANGED)
0 commit comments