openedx / openedx/XBlock

Allow blocks to override Field defaults without copying the original field

Open
#169 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
470
Forks
231
Avg merge
1d 1h
Merged PRs (30d)
6

Description

Currently, to change the default value of a field (such as display_name), a block needs to copy the definition. This means that if other values in the field need to change, they need to be changed in many places, which is subpar.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Trace how fields define defaults and how blocks currently replace field definitions, then add a regression test showing a block can override only a default while retaining other field values; the issue is done when this behavior works without copying the original field.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.