[BTR-53] [BB-3502] Misuse of urljoin in Gradebook URL from Instructor Panel - #312
Closed
spokerman12 wants to merge 2 commits into
Closed
[BTR-53] [BB-3502] Misuse of urljoin in Gradebook URL from Instructor Panel#312spokerman12 wants to merge 2 commits into
spokerman12 wants to merge 2 commits into
Conversation
nizarmah
pushed a commit
that referenced
this pull request
Dec 14, 2021
from the edx-sga release notes at https://github.com/mitodl/edx-sga/blob/master/RELEASE.rst - Update license classifier (#312) - Update license text to match pypi's acceptable list (#310) - Upgrade django to 3.2 LTS (#304)
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.
When the Gradebook MFE is deployed on a subdirectory,
urljoinreturns the wrong link on Instructor Dashboard.JIRA tickets: OSPR-5358 BTR-53
Discussions: Background: https://github.com/edx/configuration/pull/6171#discussion_r549190558
The frontend-app-gradebook doesn't use the /gradebook/ path out of the box (or any other). The present issue is specified as "the Gradebook link [stops] working if Gradebooks are deployed using the subdirectory mechanism," based on the linked discussion. From this method's code and its unit test, the frontend-app-gradebook should be hosted at
WRITABLE_GRADEBOOK_URL. I believe these test cases (based on themfe_deployerrole in configuration/master) should passUsing
.formatinstead ofurljoinworks nicely, and it's also applied on some important edx-platform code with similar behavior.Dependencies: None
Screenshots: See "Testing instructions"
Sandbox URL: Sandbox. You can use
staff@example.comto access the Demo Course's Instructor panel. This instance was deployed with configuration's master branchMerge deadline: None
Testing instructions:
masterWRITABLE_GRADEBOOK_URL: 'http://localhost:1994'on/edx/etc/lms.yml, but because we want the MFE on a subdirectory, let's set it tohttp://localhost:1800/gradebooks(this is based on how the MFE deploy role on configuration does it).staff@example.comor similar./gradebooks/After applying the fix:
Author notes and concerns: None.
Reviewers