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
External plugins load after confirming config warning #1748
Conversation
…set config to default config.json if they decline loading the cross origin config
Codecov Report
@@ Coverage Diff @@
## master #1748 +/- ##
==========================================
- Coverage 58.80% 58.75% -0.06%
==========================================
Files 454 455 +1
Lines 21007 21027 +20
Branches 4975 4975
==========================================
+ Hits 12354 12355 +1
- Misses 8343 8362 +19
Partials 310 310
Continue to review full report at Codecov.
|
Visiting http://localhost:3000/?config=test_data/config_demo.json has an error currently about GDCTrack not being found on this branch |
Is this one ready now? |
Looks good to me :) |
merge'd |
This closes #1692, now the config warning modal holds off fetchPlugins until after the user confirms that they trust the source, so external plugins get loaded after. Cancel resets to default configuration (same logic as onFactoryReset)
Making as draft for now because not too sure how to handle the cancel case. Assuming they do not want to load the cross origin config, will have to atleast clear the config in the URL and in the configPath and set it to the default config (config.json). If clearing the config, may have to clear the session since that session may have info recorded using the previous config (such as confirming, loading a view, and then refresh and not confirming/cancel the second time).