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:
Navin Karkera
2025-03-12 17:56:12 +00:00
committed by GitHub
parent 3f844b6a21
commit 711d6aa357
7 changed files with 351 additions and 131 deletions

View File

@@ -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,