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

Assignee

Nimisha Asthagiri

Reporter

Nimisha Asthagiri

Labels

Customer

None

URL

None

Groups with Read-Only Access

None

Actual Points

None

Reach

None

Impact

None

Open edX Discourse Thread

None

Platform Map Area (Levels 1 & 2)

None

Platform Map Area (Levels 3 & 4)

None

Contributor Name

None

Blended Project Status Page

None

Story Points

2

Epic Link

Priority

CAT-2
Configure