-
Notifications
You must be signed in to change notification settings - Fork 101
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
feat: allow runtieme configuration #586
feat: allow runtieme configuration #586
Conversation
Thanks for the pull request, @dcoa! 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: 64.96% // Head: 65.14% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #586 +/- ##
==========================================
+ Coverage 64.96% 65.14% +0.17%
==========================================
Files 45 47 +2
Lines 805 809 +4
Branches 156 156
==========================================
+ Hits 523 527 +4
Misses 272 272
Partials 10 10
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. |
@dcoa Thank you for your contribution, is this ready for our review? |
Hi @natabene , yes is ready. |
c156919
to
300f72e
Compare
300f72e
to
9e2ee48
Compare
I plan to approve and merge this on Monday 10/17 unless specific concerns are raised. |
I tested it, and it works. 🌟 |
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.
Just a few small suggestions, but this looks good to me otherwise.
src/head/Head.test.jsx
Outdated
|
||
describe('Head', () => { | ||
const props = {}; | ||
it('should match render title tag and fivicon with the site configuration values', () => { |
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.
it('should match render title tag and fivicon with the site configuration values', () => { | |
it('should match render title tag and favicon with the site configuration values', () => { |
.env
Outdated
APP_ID= | ||
MFE_CONFIG_API_URL= |
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 suggest using single quotes here. The effect is the same, but it would make these new lines consistent with the rest of the file, which could be less confusing for someone who doesn't know whether or not the quotes are important.
APP_ID= | |
MFE_CONFIG_API_URL= | |
APP_ID='' | |
MFE_CONFIG_API_URL='' |
.env.development
Outdated
APP_ID= | ||
MFE_CONFIG_API_URL= |
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.
Same suggestion
APP_ID= | |
MFE_CONFIG_API_URL= | |
APP_ID='' | |
MFE_CONFIG_API_URL='' |
.env.test
Outdated
APP_ID= | ||
MFE_CONFIG_API_URL= |
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.
Same suggestion
APP_ID= | |
MFE_CONFIG_API_URL= | |
APP_ID='' | |
MFE_CONFIG_API_URL='' |
5cd5bdd
to
fe2a6c7
Compare
@dcoa 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
@hurtstotouchfire reports that this broke 2U's stage build. At this point it's still unclear what exact change caused this (and why it wasn't caught in CI), but here's the trace for the record:
|
Oof, looks like there's an error in the error handling code. The pipeline is trying to print out more information (
|
Hi, @arbrandes |
Allows frontend-app-profile to be configured at runtime using the LMS's new MFE Configuration API. Part of openedx/wg-frontend#103
Description
This PR is part of the work to make it possible to configure the frontend applications at runtime (you can referer to this openedx/wg-frontend#103).
Changes
How to test
MFE_CONFIG_API_URL
andAPP_ID
in the env file and add the api url ( To test this you can use the API from this feat: add mfe config api edx-platform#30473 or use an external tool to mock the API response).Note: You can combine buildtime and runtime configuration