-
Notifications
You must be signed in to change notification settings - Fork 75
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: replace hardcoded edx string with site_name from configs #425
feat: replace hardcoded edx string with site_name from configs #425
Conversation
Thanks for the pull request, @ihor-romaniuk! 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 ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #425 +/- ##
==========================================
+ Coverage 74.48% 74.53% +0.04%
==========================================
Files 106 108 +2
Lines 2085 2089 +4
Branches 514 514
==========================================
+ Hits 1553 1557 +4
Misses 504 504
Partials 28 28
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. |
@@ -1,7 +1,7 @@ | |||
<!doctype html> | |||
<html lang="en-us"> | |||
<head> | |||
<title>Course Authoring | edX</title> | |||
<title>Course Authoring | <%= process.env.SITE_NAME %></title> |
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.
@arbrandes This uses static configuration (process.env.SITE_NAME
) instead of runtime configuration (getConfig().SITE_NAME
). Am I right in presuming that runtime config isn't available in this file?
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.
Yes, you are right, just a static configuration. Also, this approach is used by all MFEs.
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.
@ihor-romaniuk, right. However, Kyle's point is relevant: in order to truly fix the problem, we'll have to introduce a way to get the SITE_NAME
dynamically.
We can use frontend-app-account
as a template. See the <Head />
component that was introduced there for this very purpose. It makes use of the <Helmet />
component to modify the page title with the dynamically-obtained site name.
Do you mind doing that here as well? Otherwise, the change is not very useful to current users.
Hi @KristinAoki! Flagging this for your review. |
@@ -1,7 +1,7 @@ | |||
<!doctype html> | |||
<html lang="en-us"> | |||
<head> | |||
<title>Course Authoring | edX</title> | |||
<title>Course Authoring | <%= process.env.SITE_NAME %></title> |
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.
@ihor-romaniuk, right. However, Kyle's point is relevant: in order to truly fix the problem, we'll have to introduce a way to get the SITE_NAME
dynamically.
We can use frontend-app-account
as a template. See the <Head />
component that was introduced there for this very purpose. It makes use of the <Helmet />
component to modify the page title with the dynamically-obtained site name.
Do you mind doing that here as well? Otherwise, the change is not very useful to current users.
Hi @ihor-romaniuk! Just checking to see if the requested changes were made and/or that this pull request is ready for review. Thanks! |
Hi @ihor-romaniuk! Friendly check-in on this :) |
119bbe3
to
820f556
Compare
Hi @arbrandes, @kdmccormick Everything was updated and it's ready for review. PR #424 was also updated. |
@arbrandes @kdmccormick @jristau1984 would you mind taking a look at this? Thanks! |
Tests failed. It may have been a flaky run, so I have kicked them off again. |
@arbrandes @ihor-romaniuk CI is still failing due to changes requested. |
Hi @jristau1984. All checkers are green. |
@ihor-romaniuk @arbrandes - are the changes on this all set? Can @jristau1984 merge? |
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.
Awesome, thanks for the changes, @ihor-romaniuk!
@ihor-romaniuk 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
Description:
This PR replace the hardcoded
edx
string in the page head with theSITE_NAME
value from the configuration.Related PRs:
PR to the olive brunch - #424