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

Use the config provided by the back end server #469

Merged
merged 15 commits into from
Sep 4, 2019
Merged

Conversation

landonreed
Copy link
Contributor

@landonreed landonreed commented Aug 22, 2019

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JSDoc and code is thoroughly commented
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing

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

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

codecov-io commented Aug 22, 2019

Codecov Report

Merging #469 into dev will increase coverage by 0.27%.
The diff coverage is 20.89%.

Impacted file tree graph

@@            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
Flag Coverage Δ
#unit_tests 16.26% <20.89%> (?)
Impacted Files Coverage Δ
lib/common/components/Sidebar.js 80% <ø> (ø) ⬆️
lib/types/index.js 0% <ø> (ø) ⬆️
lib/main.js 0% <0%> (ø) ⬆️
lib/manager/reducers/languages.js 58.82% <0%> (-3.68%) ⬇️
lib/alerts/components/AlertsViewer.js 0% <0%> (ø) ⬆️
lib/alerts/actions/alerts.js 0% <0%> (ø) ⬆️
lib/common/components/PageNotFound.js 0% <0%> (ø) ⬆️
lib/manager/reducers/status.js 30% <0%> (-0.38%) ⬇️
lib/common/containers/App.js 0% <0%> (ø) ⬆️
lib/alerts/components/AlertEditor.js 0% <0%> (ø) ⬆️
... and 8 more

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 4df82d3...08492e9. Read the comment docs.

@evansiroky evansiroky removed their assignment Aug 27, 2019
Copy link
Contributor

@evansiroky evansiroky left a 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.

@landonreed landonreed assigned evansiroky and unassigned landonreed Aug 29, 2019
@landonreed
Copy link
Contributor Author

OK, @evansiroky. Comments have been addressed.

@evansiroky evansiroky assigned landonreed and unassigned evansiroky Aug 30, 2019
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.
@landonreed landonreed assigned evansiroky and unassigned landonreed Sep 3, 2019
modules: {
[name: ModuleType]: {
enabled?: boolean,
spec?: Array<any>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this needed anymore?

Copy link
Contributor

@evansiroky evansiroky left a 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.

@evansiroky evansiroky assigned landonreed and unassigned evansiroky Sep 3, 2019
@landonreed
Copy link
Contributor Author

🎉 This PR is included in version 4.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Expose available modules, extensions, and other server configurations in server endpoint
3 participants