Repository navigation
Conversation
Adds get_course_competency_criteria() and GET api/cbe/v1/courses/<course_key>/criteria/, served from a new learner-only URL module, openedx_learning.learner_urls. The endpoint returns a course run's competency criteria hierarchy as four flat lists (taxonomies, competencies, groups, criteria), leaves out archived and disabled records, and prunes branches left with no criteria. Access is the new openedx_learning.view_course_competency_criteria permission, which allows any signed-in user by default and which openedx-platform overrides. Part of openedx#733 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fetch the groups below a course run's course-level groups level by level through parent_id, so a request reads only that run's subtree. Split the learner view and serializers into their own modules, rename the result dataclasses with a Learner prefix, document the learner URL module and permission for hosts, and tighten the tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rename kept_course_level_groups to live_course_level_groups_with_criteria and tags to competency_tags, and move the code that collects the root groups, adds the groups holding criteria and sorts them into _groups_with_competency_ids_in_result_order. The output is unchanged. Add two tests the ticket asks for: a course run without criteria costs one query even when another course run has criteria under the same competency, and a change to the system default profile's threshold shows on the next call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace the assert on a competency tag's taxonomy with a TypeError, and show the groups _groups_with_competency_ids_in_result_order returns as a tree in its docstring. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The learner course-criteria read now names a criterion's ObjectTag object_id `object_id` and a group's competency tag `tag_id`, the same names the authoring reads use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the pull request, @tbain! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
PR Description
This PR continues #945, opened by jesperhodge, and carries the same six commits. I am taking over #733, and the earlier review discussion is on that PR.
This is one of two PRs that implement #733. The other is an openedx-platform PR.
Please review this by reading the HTML PR Description.
HTML PR Description
Supporting Docs
AI Review
Review HTML
Fix Report
Summary by CodeRabbit