feat: adding CCX support to gradebook API - #37899
luisfelipec95 wants to merge 1 commit into
Conversation
|
Thanks for the pull request, @luisfelipec95! 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. 🔘 Update the status of your PRYour PR is currently marked as a draft. After completing the steps above, update its status by clicking "Ready for Review", or removing "WIP" from the title, as appropriate. Where 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. |
|
Hi @luisfelipec95! Is this still in progress? |
Hi @mphilbrick211! Thanks for checking in. I created an issue outlining the justification and proposed approach and referenced this PR as a draft to support the discussion. I’m waiting for feedback there before moving this PR forward. Once the discussion concludes, I’ll either mark it ready for review or close it accordingly. |
aa173b1 to
9d70484
Compare
Description
This PR updates the "View Gradebook" link in the CCX (Custom Courses for edX) coach dashboard to point to the writable Gradebook MFE when enabled, instead of defaulting solely to the legacy gradebook view.
Currently, CCX staff are directed to the legacy gradebook view, preventing them from accessing modern grade management capabilities. This change retrieves the
WRITABLE_GRADEBOOK_URLfrom configuration helpers or settings and builds the MFE URL with the correspondingccx_locatorcontext wheneveris_writable_gradebook_enabledevaluates to true.Issue Reference
#37898
Changes Made
dashboardview inlms/djangoapps/ccx/views.py:Fetched
WRITABLE_GRADEBOOK_URLusingconfiguration_helpers.get_value()with fallback tosettings.WRITABLE_GRADEBOOK_URL.is_writable_gradebook_enabled(ccx_locator)and updatedcontext['gradebook_url']to{writable_gradebook_url}/{str(ccx_locator)}when enabled.