Repository navigation
StudentCompetencyCriteriaStatus and StudentCompetencyCriteriaGroupStatus data models - #20
Open
jesperhodge wants to merge 1 commit into
Open
jesperhodge wants to merge 1 commit into
jesperhodge wants to merge 1 commit into
Conversation
This was referenced Sep 28, 2026
jesperhodge
added this pull request to stack #23
September 28, 2026 19:12
jesperhodge
marked this pull request as ready for review
September 29, 2026 13:44
20 tasks
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
jesperhodge
removed this pull request from stack #23
October 2, 2026 17:17
jesperhodge
changed the base branch from
jesperhodge/642b-deps-641-and-642a
to
cbe-642-03-competency-status
October 2, 2026 17:17
jesperhodge
force-pushed
the
jesperhodge/642b-stack-base
branch
from
October 2, 2026 17:17
a7aa1dd to
2f000d9
Compare
jesperhodge
added this pull request to stack #25
October 2, 2026 17:33
jesperhodge
removed this pull request from stack #25
October 2, 2026 17:33
jesperhodge
added this pull request to stack #26
October 2, 2026 17:33
Owner
Author
|
Please review @ormsbee @kdmccormick |
This was referenced Oct 7, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AI usage
This PR stack was generated by AI and reviewed by a human, plus went through a code review by @tbain.
Description
This PR is the base branch for the reviewable stack that implements part B of openedx#642, the two learner status models that point into the criteria tree from openedx#641:
StudentCompetencyCriteriaStatus, a learner's current mastery status for one leaf criterion, andStudentCompetencyCriteriaGroupStatus, the same for one criteria group.Supporting information
CompetencyMasteryStatusandStudentCompetencyStatus. It is reviewed here in chore: keep PR #16's place in the #642 stack #16, feat: add the CompetencyMasteryStatus lookup table #17 and feat: add StudentCompetencyStatus for top-level mastery tracking #18, and is not for review in this stack.cbe-642-03-competency-status, the head branch of feat: add StudentCompetencyStatus for top-level mastery tracking #18, so each PR's diff shows only part B.Deviations from the acceptance criteria
createdusesauto_now_add=Trueandmodifiedusesauto_now=True(openedx#642 and openedx#613).manual_date_time_field()instead.auto_nowdoes not fire onQuerySet.update(), so it would leavemodifiedstale on the single conditionalUPDATEthat raises a status, which the criterion on mastery status order exists to enable. openedx#642's Open Questions already records this divergence. The tests check that both columns exist, not how they are filled.How to review this PR
Review the stack bottom to top. Each PR targets the one below it, and #21 targets this PR's branch (
jesperhodge/642b-stack-base).StudentCompetencyCriteriaStatus, its migration0011, and its tests.StudentCompetencyCriteriaGroupStatus, its migration0012, its tests, and the ADR-0002 index test.How to merge
main, and the upstream PR is opened againstmain, because GitHub cannot change an existing PR's base repository. That upstream PR closes Mastery status lookup + learner progress models openedx/openedx-core#642.Testing instructions
Confirm no migration drift:
The snippet below covers the whole stack's main happy paths. Check out
jesperhodge/642b-02-group-status, where both models exist, and runpython manage.py migrate. Then paste the snippet intopython manage.py shell. The lines commented with an error are expected to raise, so in IPython, which stops a pasted block at its first exception, paste one block at a time.