Repository navigation
feat: let enrolled learners and course staff read a course run's competency criteria - #4
Open
jesperhodge wants to merge 6 commits into
Open
jesperhodge wants to merge 6 commits into
jesperhodge wants to merge 6 commits into
Conversation
Mounts openedx-core's learner CBE URL module in the LMS and overrides openedx_learning.view_course_competency_criteria so that only users with an active enrollment in the course run, or staff access to it, may read its competency criteria. Part of openedx/openedx-core#733 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The content test's course now starts in the past, so the released and restricted subsections are loadable as controls. The permission's comment and docstring state the registration rule and where identical results come from. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jesperhodge
marked this pull request as ready for review
November 20, 2026 16:38
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.
This is one of 2 PRs that implement openedx/openedx-core#733 - there is also openedx/openedx-core#945.
Please read the HTML PR Description:
openedx-platform-4-pr-description-2.html
AI Review
Code Review: review-platform-pr4-cleaned.html
Fix Report: fix-report-platform-pr4.md
Local verification
The failing checks from the CI pipeline have to do with the openedx-core PR not yet merged. So I ran them locally, against openedx-core PR openedx/openedx-core#945 at
b9492ceplus theperm_existsguard requested there:pytest lms/djangoapps/courseware/tests/test_course_competency_criteria_access.pyunderlms.envs.testc0be67db2822 passedpytest lms/djangoapps/courseware/tests/test_rules.pyunderlms.envs.test2181510aba7 passedlint-importsc0be67db28Contracts: 4 kept, 0 broken.ruff checkonlms/djangoapps/courseware/rules.py,lms/urls.pyand the new test filec0be67db28(lms/urls.pyat2181510aba, unchanged since)All checks passed!pylintonlms/djangoapps/courseware/rules.pyand the new test filec0be67db28manage.py lms checkandmanage.py cms check2181510abafields.W342warning.pytest tests/openedx_learning(SQLite)b9492ceplus the guard802 passed, 10 skippeduvx showboat verifyc0be67db28The platform checks ran in the Tutor LMS image. Not run locally: the platform's full unit-test suite (the
lms,cmsandshared-with-*shards), pylint over the whole repository, the migrations check,make pii_check, xsslint andcheck_keywords.On GitHub, every job that loads
lms/urls.pyfails withModuleNotFoundError: No module named 'openedx_learning.learner_urls', because the pinnedopenedx-core==1.21.0does not contain PR 945, and fail-fast then cancels the remaining unit-test shards. "Lint Python Imports" passes.