refactor: downstream entity links api [FC-0076] (#36311)
Refactors downstream links API to handle multiple filters using a single API. Also adds a new route to return summary of library links for a given course.
This commit is contained in:
@@ -2385,7 +2385,7 @@ def create_or_update_xblock_upstream_link(xblock, course_key: str | CourseKey, c
|
||||
lib_component = None
|
||||
PublishableEntityLink.update_or_create(
|
||||
lib_component,
|
||||
upstream_usage_key=xblock.upstream,
|
||||
upstream_usage_key=upstream_usage_key,
|
||||
upstream_context_key=str(upstream_usage_key.context_key),
|
||||
downstream_context_key=course_key,
|
||||
downstream_usage_key=xblock.usage_key,
|
||||
|
||||
Reference in New Issue
Block a user