Skip to content
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

Merged
merged 5 commits into from
Sep 23, 2021

Conversation

AhtishamShahid
Copy link
Contributor

@AhtishamShahid AhtishamShahid commented Sep 22, 2021

https://openedx.atlassian.net/browse/TNL-8700

Added env variable to toggle progress graph settings

)
({ handleChange, handleBlur, values }) => {
let formSwitch = null;
if (process.env.ENABLE_PROGRESS_GRAPH_SETTINGS === 'true') {
Copy link
Contributor

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.

Copy link
Contributor Author

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-commenter
Copy link

codecov-commenter commented Sep 22, 2021

Codecov Report

Merging #190 (07c17e6) into master (0060f15) will decrease coverage by 0.18%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            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              
Impacted Files Coverage Δ
src/index.jsx 0.00% <0.00%> (ø)
src/pages-and-resources/progress/Settings.jsx 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0060f15...07c17e6. Read the comment docs.

.env Show resolved Hide resolved
src/index.jsx Show resolved Hide resolved
src/pages-and-resources/progress/Settings.jsx Outdated Show resolved Hide resolved
@AhtishamShahid AhtishamShahid merged commit 8552a96 into master Sep 23, 2021
@AhtishamShahid AhtishamShahid deleted the ahtisham/TNL-8700 branch September 23, 2021 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants