-
Notifications
You must be signed in to change notification settings - Fork 174
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
Adding support for getting env config through client env #2838
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## stage #2838 +/- ##
==========================================
+ Coverage 95.89% 96.08% +0.19%
==========================================
Files 173 215 +42
Lines 46316 53949 +7633
==========================================
+ Hits 44415 51838 +7423
- Misses 1901 2111 +210 ☔ View full report in Codecov by Sentry. |
This pull request is not passing all required checks. Please see this discussion for information on how to get all checks passing. Inconsistent checks can be manually retried. If a test absolutely can not pass for a good reason, please add a comment with an explanation to the PR. |
@bandana147 - what's the use-case for this enhancement? |
@narcis-radu This applies to standalone gnav clients. If their page is not listed in this condition:
|
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.
new config, new unit test!
The PR is validated, and the test results are updated in the ticket's subtask. https://adobecom.github.io/nav-consumer/navigation.html?navbranch=mwpw-157474&authoringpath=/federal/dev/gnavtest/ccgnav |
* Adding support for getting env config through client env * Attaching client env to window
@@ -37,6 +37,7 @@ export default async function loadBlock(configs, customLib) { | |||
const { | |||
header, footer, authoringPath, env = 'prod', locale = '', theme, | |||
} = configs || {}; | |||
window.miloClientEnv = env; |
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.
we should not export a global variable with environment details
…)" This reverts commit 8138b79.
Resolves: MWPW-157474
Test URLs:
QA