Skip to content

[Refactor] Slash-n-Burn Poll BuiltIn XBlock #533

Open
openedx/openedx-platform
#38744

Description

@irfanuddinahmad

See parent epic: openedx/openedx-platform#37819


Rollout Position

Step 1 of 8 — Smallest footprint (~380 LOC), no external integrations, minimal risk. Start here to validate the removal workflow end-to-end.


Block Details

Toggle USE_EXTRACTED_POLL_QUESTION_BLOCK in openedx/envs/common.py
Shim class _BuiltInPollBlock in xmodule/poll_block.py
Entrypoint poll_question = "xmodule.poll_block:PollBlock" in pyproject.toml

Checklist

Pre-condition

  • Review PRs merged into the built-in Poll XBlock code in edx-platform after the extraction work was done — port any bug fixes or improvements to xblocks-contrib if not already there.

Steps (single PR)

  • Remove the toggle — delete USE_EXTRACTED_POLL_QUESTION_BLOCK from openedx/envs/common.py and all usages.
  • Remove the shim — delete _BuiltInPollBlock class and the from xblocks_contrib.poll import PollBlock as _ExtractedPollBlock import from xmodule/poll_block.py.
  • Remove the entrypoint — delete poll_question = "xmodule.poll_block:PollBlock" from pyproject.toml.
  • Remove remaining assets:
    • xmodule/poll_block.py (Python class)
    • xmodule/js/src/poll/ (JavaScript)
    • lms/templates/poll.html (template)
    • xmodule/static/css-builtin-blocks/PollBlockDisplay.css (CSS)
    • Webpack entries PollBlockDisplay / PollBlockEditor in webpack.builtinblocks.config.js
  • Run smoke tests on the extracted Poll block to verify nothing is broken.

Activity

  1. irfanuddinahmad commented on Jun 11, 2026

    @irfanuddinahmad
    Author
  2. added 3 commits that reference this issue on Jun 11, 2026
    83ca0c7
    35d93ce
    6152253
  3. moved this to 👀 In review in Aximprovements Teamon Jun 24, 2026
  4. salman2013 commented on Jul 7, 2026

    @salman2013

    @irfanuddinahmad Please mark all the checklist items mentioned in the description to confirm that everything has been completed.

  5. added a commit that references this issue on Jul 7, 2026
    01e7f45
  6. moved this from 👀 In review to 🏗 In progress in Aximprovements Teamon Jul 7, 2026
  7. moved this from 🏗 In progress to 👀 In review in Aximprovements Teamon Jul 7, 2026
  8. moved this from 👀 In review to 🔖 Ready in Aximprovements Teamon Jul 14, 2026
  9. added 2 commits that reference this issue on Nov 4, 2026
    6730b81
    e22bfc8
  10. moved this from 🔖 Ready to 🏗 In progress in Aximprovements Teamon Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions