Skip to content

Add logic to parse XBlock's XML with the pointer tag correctly. #823

@ttqureshi

Description

@ttqureshi

Currently parse_xml function in xblock/core.py doesn't support the implementation to parse the pointer tags within an XBlock's XML file. It instantiates the XBlock without picking fields data (and other metadata, if any) if there is a pointer tag.

Example XML with pointer tag

<vertical display_name="LTI">
  <lti url_name="lti"/>
</vertical>

Why need it?

We are extracting BuiltIn XBlocks from edx-platform, in order for the extracted XBlocks to work properly we want this pointer tag logic to be implemented in xblock/core.py. This will prevent breaking any functionality, ensuring that XBlock's definition is loaded correctly.

Here's the reference from Demo course, which was exported from Studio as recently as Redwood:

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions