Simon-Initiative / oli-torus

Next Generation OLI Authoring and Delivery Platform
https://proton.oli.cmu.edu
MIT License
81 stars 35 forks source link

[CHORE] [MER-3172] Make LogicLab not include full CreationContext in model #4886

Closed andersweinstein closed 1 month ago

andersweinstein commented 1 month ago

Externally written LogicLab was batching the entire large activity CreationContext object into the activity model for convenience. This is inappropriate, it bloats the object and includes a very large and unnecessary data structure, for example including everything else on the page, that will be noise on viewing its JSON or web page inspection. The only info used is the activity title (as it was at activity creation time)

This PR changes to only extract the info used, currently the title.

This should not change the behavior in any way.