Skip to content

Conversation

@viv-helix
Copy link

@viv-helix viv-helix commented Dec 30, 2025

Description

  • This PR adds a new API endpoint that retrieves all components within a unit, returning unit-level metadata along with a list of contained components, including their block IDs, block types, and display names.

  • Access to this endpoint is gated by a new course-level waffle flag contentstore.enable_unit_expanded_view that controls the Unit Expanded View feature in Studio’s Course Outline. When the flag is disabled for a course, requests to retrieve unit components are blocked with a 403 Forbidden response. When the flag is enabled, the endpoint functions normally.

URL: GET /api/contentstore/v1/unit_handler/{usage_key_string}

Jira

Testing

  • Verified successful response for valid unit usage keys
  • Confirmed correct component metadata is returned
  • Ensured proper HTTP status codes for success and error cases

@viv-helix viv-helix merged commit c71aca8 into release-ulmo Jan 9, 2026
79 of 103 checks passed
@viv-helix viv-helix deleted the feat/TNL2-473 branch January 9, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants