-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: sync LMS_BASE_URL for bookmark API if changed #1120
Conversation
This change makes it possible to use the latest LMS_BASE_API if it was changed because of dynamic config API, which is the default case of tutor. This changes closes openedx/wg-build-test-release/issues/270 Fixes that are simlar to this - gradebook openedx/frontend-app-gradebook/pull/290 - course authoring openedx/frontend-app-authoring/pull/389
Thanks for the pull request, @ghassanmas! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
Note to self: add to backport list |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1120 +/- ##
=======================================
Coverage 87.26% 87.26%
=======================================
Files 253 253
Lines 4391 4391
Branches 1109 1109
=======================================
Hits 3832 3832
Misses 545 545
Partials 14 14
☔ View full report in Codecov by Sentry. |
I'm not a reviewer but this looks great to me. |
Humm... not exactly, I export it, so I can import it in the test file, so the function would be tested, not related to webpack. As for the fix, it's related to JS hoisting and getConfig API timeline, if we define a variale from getConfig() as a To my understanding the timeline of things:
So my chages here in a nutshell is jsut that I force the App to use |
Sounds good, thanks for the clear explanations. I think that we should backport this change both to Olive and Palm. |
@regisb yeah for Palm I intend to do it once it's merged. For olive, do you anticipate we are going to do olive.5 release, or is that not necessary for doing a backport given that tutor would use the tag, unless you would override the version value for learning in tutor 15.x to user olive.master instead of olive.4 |
No, I don't think we should make olive.5. But it would be good to have the patch out there. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me. Thanks, @ghassanmas!
Thank you for this contribution @ghassanmas! Looks like you already got a 👍, so I'm marking the changes as ready for merge. |
@ghassanmas 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Hi all,
|
This change makes it possible to use the latest LMS_BASE_API
if it was changed because of dynamic config API, which is the
default case of tutor.
This changes closes
Fixes that are simlar to this
Testing
Tutor
nano "$(tutor plugins printroot)/learning.py"
Devstack
Last step
Todos