Skip to content

Commit ed55494

Browse files
Irfan Ahmadclaude
authored andcommitted
refactor: slash-and-burn Word Cloud BuiltIn XBlock
Removes the built-in Word Cloud XBlock and all associated assets now that USE_EXTRACTED_WORD_CLOUD_BLOCK has been True, making xblocks_contrib the active implementation. - Remove USE_EXTRACTED_WORD_CLOUD_BLOCK toggle from common.py - Remove word_cloud entrypoint from pyproject.toml - Delete xmodule/word_cloud_block.py (built-in class + shim) - Delete xmodule/assets/word_cloud/ (JS assets including D3 vendor libs and custom webpack config) - Delete lms/templates/word_cloud.html - Delete xmodule/static/css-builtin-blocks/WordCloudBlockDisplay.css - Remove WordCloudBlockDisplay/WordCloudBlockEditor webpack entries from webpack.builtinblocks.config.js and webpack.common.config.js - Delete xmodule/tests/test_word_cloud.py and lms/djangoapps/courseware/tests/test_word_cloud.py Closes openedx/public-engineering#534 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 3d0f9c0 commit ed55494

15 files changed

Lines changed: 1 addition & 1804 deletions

File tree

lms/djangoapps/courseware/tests/test_word_cloud.py

Lines changed: 0 additions & 307 deletions
This file was deleted.

lms/templates/word_cloud.html

Lines changed: 0 additions & 51 deletions
This file was deleted.

openedx/envs/common.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,14 +2059,6 @@ def add_optional_apps(optional_apps, installed_apps):
20592059
#
20602060
# Ticket: https://github.com/openedx/edx-platform/issues/35308
20612061

2062-
# .. toggle_name: USE_EXTRACTED_WORD_CLOUD_BLOCK
2063-
# .. toggle_default: True
2064-
# .. toggle_implementation: DjangoSetting
2065-
# .. toggle_description: Enables the use of the extracted Word Cloud XBlock, which has been shifted to the 'openedx/xblocks-contrib' repo.
2066-
# .. toggle_use_cases: temporary
2067-
# .. toggle_creation_date: 2024-11-10
2068-
# .. toggle_target_removal_date: 2026-04-10
2069-
USE_EXTRACTED_WORD_CLOUD_BLOCK = True
20702062

20712063
# .. toggle_name: USE_EXTRACTED_ANNOTATABLE_BLOCK
20722064
# .. toggle_default: True

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ vertical = "xmodule.vertical_block:VerticalBlock"
4646
video = "xmodule.video_block:VideoBlock"
4747
videoalpha = "xmodule.video_block:VideoBlock"
4848
videodev = "xmodule.template_block:TranslateCustomTagBlock"
49-
word_cloud = "xmodule.word_cloud_block:WordCloudBlock"
5049
wrapper = "xmodule.wrapper_block:WrapperBlock"
5150

5251
[project.entry-points."xblock_asides.v1"]

webpack.builtinblocks.config.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,5 @@ module.exports = {
8282
VideoBlockDisplay: [
8383
'./xmodule/assets/video/public/js/10_main.js'
8484
],
85-
WordCloudBlockDisplay: [
86-
'./xmodule/js/src/xmodule.js',
87-
'./xmodule/assets/word_cloud/src/js/word_cloud.js'
88-
],
89-
WordCloudBlockEditor: [
90-
'./xmodule/js/src/xmodule.js',
91-
'./xmodule/js/src/raw/edit/metadata-only.js'
92-
]
9385
}
9486
};

0 commit comments

Comments
 (0)