Skip to content

feat: add CompetencyTaxonomy.taxonomy_overrides_org - #3

Open
jesperhodge wants to merge 2 commits into
jesperhodge/cbe-641-02-deps-and-layeringfrom
jesperhodge/cbe-641-03-taxonomy-overrides-org
Open

jesperhodge wants to merge 2 commits into
jesperhodge/cbe-641-02-deps-and-layeringfrom
jesperhodge/cbe-641-03-taxonomy-overrides-org

Conversation

@jesperhodge

@jesperhodge jesperhodge commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Part 3 of 7 for issue openedx#641. Based on part 2.

What this does

Adds CompetencyTaxonomy.taxonomy_overrides_org.

Turns cbe/models.py into a models/ package.

Verifying

pytest tests/openedx_learning --no-cov -q                        # 9 passed
python manage.py makemigrations openedx_learning --check --dry-run   # no changes detected

Refs openedx#641

Comment thread src/openedx_learning/migrations/0002_competencytaxonomy_taxonomy_overrides_org.py Outdated
Comment thread src/openedx_learning/applets/cbe/models/competency_taxonomy.py Outdated
@jesperhodge
jesperhodge removed this pull request from stack #11 September 11, 2026 14:29
@jesperhodge
jesperhodge added this pull request to stack #12 September 11, 2026 14:33
@jesperhodge
jesperhodge removed this pull request from stack #12 September 11, 2026 14:34
@jesperhodge
jesperhodge added this pull request to stack #13 September 11, 2026 14:34

@mgwozdz-unicon mgwozdz-unicon left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but Claude and I have a nit: It would probably be nice to refer to the CompetencyRuleProfile or "Competency Rule Profile" in full in both the models file and migrations file rather than just shortening to "profile" to make sure anyone new to the concepts/context here knows what's being referred to.

jesperhodge and others added 2 commits September 14, 2026 12:40
PR openedx#712 shipped CompetencyTaxonomy without this column. It settles a tiebreak
that cannot arise yet: when a criterion could inherit its rule from an
organization-scoped CompetencyRuleProfile or from a taxonomy-scoped one, this
flag decides which wins (ADR-0002 Decision 4). Organization-scoped profiles do
not exist, so no code path reads it. Adding the column now avoids a later
migration against a table that by then has learner data hanging off it.

Turns cbe/models.py into a models/ package, since the three criteria models
that follow form one connected structure and want a module of their own.

Refs openedx#641

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Jesper Hodge <19345795+jesperhodge@users.noreply.github.com>
@jesperhodge
jesperhodge force-pushed the jesperhodge/cbe-641-03-taxonomy-overrides-org branch from e486543 to 490f05a Compare September 14, 2026 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants