Add Transform: Course Blocks API

Description

  • constructor

    • Take in block_counts and student_view_data as parameters

  • required fields

    • graded

    • format

    • display_name

    • type

  • collect phase

    • student_view_multi_device - by calling has_support("multi_device")

    • student_view_data (for now, just the video module has implemented this)

    • P2 olx_data

  • transform phase

    • block_counts - compute aggregate value as block tree is traversed

    • lms_web_url

    • student_view_url


Note: there is a tradeoff between storage versus computation. So for now, we compute some items in the transform phase even though they are not user-specific, as long as they don't require an instantiated xBlock.

This story is just for creating the transform. https://openedx.atlassian.net/browse/MA-1005 is for creating the actual API endpoint.

Steps to Reproduce

None

Reason for Variance

None

Release Notes

None

Customer Problem Statement

None

Status

Assignee

Nimisha Asthagiri

Reporter

Nimisha Asthagiri

Labels

Customer

None

Partner Manager

None

URL

None

Contributor Name

None

Groups with Read-Only Access

None

Actual Points

None

Sub-Team(s)

None

Reach

None

Impact

None

Open edX Discourse Thread

None

Story Points

2

Epic Link

Components

Priority

CAT-2
Configure