Skip to content

Conversation

@farhan
Copy link
Contributor

@farhan farhan commented Dec 26, 2025

chore: Remove XModuleMixin legacy attributes from word cloud

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/edx-platform#37845. Do you mind reviewing that PR?

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.

3 participants