openedx / openedx/openedx-platform
Fix: XBlock <class 'xblock.internal.DiscussionXBlockWithMixins'> does not contain field url_name
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.2k
- Forks
- 4.4k
- Avg merge
- 6d 18h
- Merged PRs (30d)
- 42
Description
This warning is appearing 30 times during provisioning. It clutters logs and hinders dev experience (https://github.com/openedx/edx-platform/issues/32888).
The warning is being logged here: https://github.com/openedx/XBlock/blob/d28d78b051769520edfa125af1a8e6f989e344ab/xblock/mixins.py#L517
And the root cause should be somewhere in this file: https://github.com/openedx/edx-platform/blob/ff17e51699f1eeed520545f004c29a9572570b01/xmodule/discussion_block.py
AC
- The warnings stop cluttering logs
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the warning location in xblock/mixins.py and inspect xmodule/discussion_block.py for how DiscussionXBlockWithMixins is provisioned and fields are defined. Reproduce the provisioning warning, then verify that the relevant provisioning flow no longer emits the missing url_name warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 43/100