-
Notifications
You must be signed in to change notification settings - Fork 81
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
refactor: added env variable for progress graph #190
Conversation
) | ||
({ handleChange, handleBlur, values }) => { | ||
let formSwitch = null; | ||
if (process.env.ENABLE_PROGRESS_GRAPH_SETTINGS === 'true') { |
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.
You should merge this setting with the others in main index file inside mergeConfig
and then you can load it here from the AppContext or using getConfig
.
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.
Thanks for the suggestion, I have updated the code.
Codecov Report
@@ Coverage Diff @@
## master #190 +/- ##
==========================================
- Coverage 70.49% 70.30% -0.19%
==========================================
Files 86 86
Lines 1481 1485 +4
Branches 323 327 +4
==========================================
Hits 1044 1044
- Misses 428 432 +4
Partials 9 9
Continue to review full report at Codecov.
|
https://openedx.atlassian.net/browse/TNL-8700
Added env variable to toggle progress graph settings