Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ComponentVersion-level XBlock Data #155

Open
ormsbee opened this issue Feb 7, 2024 · 0 comments
Open

ComponentVersion-level XBlock Data #155

ormsbee opened this issue Feb 7, 2024 · 0 comments
Labels
data model Anything relating to the relational models or more abstract "model" concepts around Learning Core.

Comments

@ormsbee
Copy link
Contributor

ormsbee commented Feb 7, 2024

In the libraries implementation, we use a Content representation of the block.xml to provide the OLX that renders a component-level XBlock. We definitely want to have this file, because it's the thing we're going to export when the XBlock gets DEPR and goes away twelve years from now. But there are going to be other situations where XBlocks want data from multiple source files. The HTMLBlock is kinda hacked to use CDATA for libraries right now, but it usually defines an HTML file in Modulestore. Looking forward more, it would be nice if we could modify ProblemBlock to keep Python source files separate from the XML, but still read them in for the purposes of the XBlock rendering in an optimized way that just did one select instead of each XBlock making n-queries for all the pieces it needs.

This does not block the Redwood preview release, but we should strongly consider it for Sumac.

@ormsbee ormsbee added the data model Anything relating to the relational models or more abstract "model" concepts around Learning Core. label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data model Anything relating to the relational models or more abstract "model" concepts around Learning Core.
Projects
None yet
Development

No branches or pull requests

1 participant