-
Notifications
You must be signed in to change notification settings - Fork 61
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
Revert "feat: Support runtime configuration" #382
Conversation
This reverts commit 9f84230.
Codecov ReportBase: 85.04% // Head: 85.06% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #382 +/- ##
==========================================
+ Coverage 85.04% 85.06% +0.02%
==========================================
Files 134 134
Lines 2741 2746 +5
Branches 762 762
==========================================
+ Hits 2331 2336 +5
Misses 388 388
Partials 22 22
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. |
@asadazam93, can you help me understand what is causing the issue? |
@arbrandes I am not sure either. I think the issue might be with something else. Still under investigation |
@arbrandes This PR did turn out to be the culprit. LMS_BASE_URL was being returned as null which caused the issue. Do you have any idea how to fix this? |
And I was not able to reproduce this issue locally. So maybe there is an environment variable that we need to add in production? |
@asadazam93, the only environment variable related to the change is LMS_BASE_URL. And ultimately, the code path that retrieves it was not changed: it would still be This is not something exclusive to this MFE. All the ones in Olive do it, so it shouldn't be controversial. There could be a typo somewhere, but one would hope unit tests would catch them. Plus, as you say, this is not reproduceable locally. Can you give me more details on the environment where the issue is happening? Are you able to provide instructions on how to reproduce the issue? There's very little I can do if I can't see the problem happening. |
@arbrandes I have tried investigating and I was not able to reproduce this locally and there are no useful logs for the error. The issue only occurs on the stage environment. It is successfully deployed but the MFE completely breaks and shows the following error in console |
@asadazam93, thanks for the additional info. Correct me if I'm wrong, but pending further information there is only one way to reproduce the error, then: to redeploy the PR to stage. I'm going to re-submit the original PR so we can try do do a more thorough code review - there could be a simple logic error somewhere - but my hunch is that this could be triggering a React bug, or even a bug somewhere in the MFE other than in the lines changed. A couple of questions in the mean time, if you don't mind:
Thank you for your help so far! |
@arbrandes I am not sure about the root cause either. To answer your questions.
Note: I had to revert the PR because there were a lot of changes that needed to be deployed to production and were blocked because of this issue. |
I have some tentative good news: I think I may have reproduced the underlying issue, just on another MFE and with another variable (frontend-app-course-authoring and LOGO_URL, for future reference). There is also nothing in the code to indicate why the variable would be undefined, but yet, it is. In any case, just the fact it's happening and is reproducible gets us half way there... if that is indeed an instance of the issue we've been discussing. I'll let you know what I find. |
False alarm. Turns out the other issue was completely unrelated. I opened a new PR so we can continue the conversation there. |
Reverts #377
The discussions MFE is broken on stage. My assumption is that this PR is the culprit