-
Notifications
You must be signed in to change notification settings - Fork 105
feat: ensure lms api synced with latest value in config #289
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
Conversation
|
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. |
Codecov ReportBase: 100.00% // Head: 100.00% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## master #289 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 109 109
Lines 1264 1263 -1
Branches 248 248
=========================================
- Hits 1264 1263 -1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
08e9595 to
2716eaa
Compare
This change make it possible if LMS url to be changed, that the last value will be picked. This is simlair openedx/frontend-app-authoring/pull/389 which issue overhangio/tutor-mfe/issues/86, the fixes is needed so that dynamic config would work with tutor: overhangio/tutor-mfe/pull/69
2716eaa to
912ff8b
Compare
arbrandes
left a comment
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.
I have yet to test this, but the code looks good.
Why are we updating package-lock in the same commit, though?
|
The change in pacakge-lock.json is realted just to version number which @kdmccormick changed in the previous change in pacakge.json #286. |
|
FYI @openedx/content-aurora : The team ping in the PR template didn't work, probably because Ghassan doesn't have direct write access to this repo. |
|
@muselesscreator, is this something you or somebody on your team could review in the next couple of days? It's pretty important for the Tutor/Olive release, which is happening next Monday (the 11th) at the latest. |
|
@ghassanmas, can you update PR description template fields (lots of stuff left black which should be filled or deleted) and provide testing instructions? Thanks you. |
|
@nsprenkle to be able to test this you would need to use enable dynamic config api, plus you would need to rely on the LMS URL, and to do that second you have to set a proxy for the mfe config url... This assuming you don't use tutor. Again the thing with testing this, I am not sure what is your dev env, anyway as @kdmccormick in simlair PR you can follow the same steps. Essetionaly what this change does, is that it enforce that the call of And again to not confuse you @kdmccormick change was necessary but it's not enough to make an MFE use dyanmic config, an MFE would need to load the config from frontend-platform, and it also needs to ensure that configuration are loaded from a function because otherwise the variabale would be defined once, as mentioned before Hoisting |
|
@ghassanmas -- Thanks for that info, but please fill it into the PR template. @nsprenkle -- MFE runtime config will be enabled in Tutor and disabled-by-default for the Devstack/edx.org installation. So:
|
|
@nsprenkle @ghassanmas I have added more context and info in the template. Hope that is suffiecnt, in any case I am happy to assist if needed. |
|
@nsprenkle Since we haven't heard from you, Adolfo and/or I are going to move forward with testing, reviewing, and merging this. |
arbrandes
left a comment
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.
I tested this on both a devstack and Tutor. As expected, there were no changes detectable on the first, and on the latter the MFE now works.
|
@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. |
This change make it possible if LMS url to be changed, that
the last value will be picked.
This is simlair openedx/frontend-app-authoring/pull/389
which issue overhangio/tutor-mfe/issues/86, the fixes is needed
so that dynamic config would work with tutor:
overhangio/tutor-mfe/pull/69
TL;DR - [ A short summary of what this PR does and why ]
This change is need to so that when LMS URL value is change at runtime. The case of which case happen is when that URL is change through dynamic config. If the LMS url is deifned only at build time this change shouldn't affect it.
The course authroing mfe has simlair issue with CMS url ref: fix: force studio url to reload if changed frontend-app-authoring#389
What changed?
[ More in depth breakdown of changes ]
Here is a simple example of our case here:
The situation before
The situation after
Developer Checklist
Testing Instructions
Since this change would fix the following case:
truethen Dynamic config API for this MFE should be relative and a proxy need to be set to forward for the lms, check this PR for more context MFE dynamic config overhangio/tutor-mfe#69In case dynamic config is off, this change doesn't suppose to affect anything,
Reviewer Checklist
Collectively, these should be completed by reviewers of this PR:
FYI: @openedx/content-aurora