Skip to content

chore: Remove XModuleMixin legacy attributes from xblocks-contrib#128

Closed
farhan wants to merge 4 commits intomainfrom
farhan/remove-legacy-xmodule-mixin-attributes
Closed

chore: Remove XModuleMixin legacy attributes from xblocks-contrib#128
farhan wants to merge 4 commits intomainfrom
farhan/remove-legacy-xmodule-mixin-attributes

Conversation

@farhan
Copy link
Contributor

@farhan farhan commented Dec 26, 2025

Ticket: #125

openedx-platform test cases PR

Details can be found here:
#125 (comment)

Copy link
Member

@kdmccormick kdmccormick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice approach.

Rather than going through .scope_ids, can you use the usage_key and context_key helper attributes defined here? https://github.com/openedx/XBlock/blob/v5.3.0/xblock/core.py#L422-L446 .

The .scope_ids field is technically correct to use, but it's honestly just verbose and hard for developers to understand. The usage_key and context_key were added a couple years ago specifically to make it nicer for developers. My bad for not clarifying that earlier.

I've updated the XModuleMixin and CourseOverview classes to follow the same pattern: openedx/openedx-platform#37845. Do you mind reviewing that PR?

@farhan farhan changed the title chore: Remove XModuleMixin legacy attributes from word cloud chore: Remove XModuleMixin legacy attributes from xblocks-contrib Jan 21, 2026
@farhan farhan force-pushed the farhan/remove-legacy-xmodule-mixin-attributes branch from 22b71fc to 9a0ff81 Compare February 11, 2026 12:46
@farhan farhan force-pushed the farhan/remove-legacy-xmodule-mixin-attributes branch from a5dc6ac to e78be4e Compare March 25, 2026 06:57
@farhan
Copy link
Contributor Author

farhan commented Mar 25, 2026

Closing as we have decided to do it in seperate PR's per block.

@farhan farhan closed this Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants