-
Notifications
You must be signed in to change notification settings - Fork 80
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
Use the config provided by the back end server #469
Conversation
This all but removes the settings.yml config file in favor of requesting the config info via the fetchAppInfo server endpoint. This action is dispatched once when any component mounts. fix #367 refs ibi-group/datatools-server#229
Codecov Report
@@ Coverage Diff @@
## dev #469 +/- ##
==========================================
+ Coverage 16.14% 16.41% +0.27%
==========================================
Files 309 309
Lines 15240 15496 +256
Branches 4647 4788 +141
==========================================
+ Hits 2460 2544 +84
- Misses 10931 11052 +121
- Partials 1849 1900 +51
Continue to review full report at Codecov.
|
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.
See a few requests for change. Also, since this changes some config, a corresponding PR should be made for the config repo.
OK, @evansiroky. Comments have been addressed. |
Previously, nesting the spec yml files under the modules field of the config file was causing it to be overwritten by the information found in the appinfo response. This moves those to the specifications field to avoid that conflict.
lib/types/index.js
Outdated
modules: { | ||
[name: ModuleType]: { | ||
enabled?: boolean, | ||
spec?: Array<any>, |
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.
Is this needed anymore?
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.
Only one little comment about flow types.
🎉 This PR is included in version 4.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Checklist
dev
before they can be merged tomaster
)Description
This all but removes the settings.yml config file in favor of requesting the config info via the
fetchAppInfo server endpoint. This action is dispatched once when any component mounts.
fix #367 refs ibi-group/datatools-server#229