fix: remove legacy xmodulemixin from xblocks-contrib xblocks#38271
fix: remove legacy xmodulemixin from xblocks-contrib xblocks#38271irtazaakram wants to merge 1 commit intomasterfrom
Conversation
4faae90 to
42f9eda
Compare
| @@ -2097,7 +2097,7 @@ def add_optional_apps(optional_apps, installed_apps): | |||
| # .. toggle_warning: Not production-ready until relevant subtask https://github.com/openedx/edx-platform/issues/34827 is done. | |||
| # .. toggle_creation_date: 2024-11-10 | |||
| # .. toggle_target_removal_date: 2026-04-10 | |||
| USE_EXTRACTED_PROBLEM_BLOCK = False | |||
| USE_EXTRACTED_PROBLEM_BLOCK = True | |||
There was a problem hiding this comment.
TODO: Revert these flags before merging
xmodule/modulestore/__init__.py
Outdated
| settings_mixins = getattr(settings, 'XBLOCK_MIXINS', ()) | ||
| self.xblock_mixins = tuple(dict.fromkeys(settings_mixins + xblock_mixins)) |
There was a problem hiding this comment.
You need to add this because XModuleMixin was missing from modulestore-based tests, right?
For modulestore-based app code, the mixins are being added here:
Do you know why that isn't working for tests? Ideally, we should only add XBLOCK_MIXINS in one place.
There was a problem hiding this comment.
It was XMLModuleStore's tests that were failing. I've reverted this change and made this addition to tests so we are only adding it in one place.
76fc611 to
017e505
Compare
017e505 to
2c98abc
Compare
Right, this is the scenario I was talking about in sync: The new runtime intentionally does not add XModuleMixin because we are trying to keep the legacy attributes out of new runtime code. Content Libraries uses this runtime. We have two options:
Of course (1) is preferred if it's easy. But if (1) would mean that the refactoring would go past next Wednesday, then go with (2). Let me know if you'd like help debugging or deciding which option to do. |
I moved the comment in this PR I think we can spend limited time in exploring 1 or 2 cases if it found extra complex then let's go for point 2 now and create a story with details for point 1 For example: usage of Perhaps we have option 3 as well: |
Relevant PR in
xblocks-contrib: openedx/xblocks-contrib#230