File tree Expand file tree Collapse file tree
openedx/core/djangoapps/content_libraries Expand file tree Collapse file tree Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments