Skip to content

Commit 1b5205a

Browse files
committed
revert: Code not related with the PR
1 parent 454a0c7 commit 1b5205a

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

  • openedx/core/djangoapps/content_libraries

openedx/core/djangoapps/content_libraries/tasks.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,6 @@ def send_events_after_publish(publish_log_pk: int, library_key_str: str) -> None
127127
elif hasattr(record.entity, "container"):
128128
container_key = api.library_container_locator(library_key, record.entity.container)
129129
affected_containers.add(container_key)
130-
131-
try:
132-
# We do need to notify listeners that the parent container(s) have changed,
133-
# e.g. so the search index can update the "has_unpublished_changes"
134-
for parent_container in api.get_containers_contains_item(container_key):
135-
affected_containers.add(parent_container.container_key)
136-
# TODO: should this be a CONTAINER_CHILD_PUBLISHED event instead of CONTAINER_PUBLISHED ?
137-
except api.ContentLibraryContainerNotFound:
138-
# The deleted children remains in the entity, so, in this case, the container may not be found.
139-
pass
140130
else:
141131
log.warning(
142132
f"PublishableEntity {record.entity.pk} / {record.entity.key} was modified during publish operation "

0 commit comments

Comments
 (0)