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

Added configuration module #39

Merged
merged 3 commits into from Oct 20, 2022
Merged

Added configuration module #39

merged 3 commits into from Oct 20, 2022

Conversation

daniellemaxwell
Copy link
Contributor

@daniellemaxwell daniellemaxwell commented Oct 18, 2022

Scope of changes

Added configuration module using node-config per the instructions on this page: https://github.com/node-config/node-config/wiki/Environment-Variables#custom-environment-variables

Fixes SC-9979

Type of change

  • new feature
  • bug fix
  • documentation
  • testing
  • technical debt
  • other (describe)

Acceptance criteria

Describe how reviewers can test this change to be sure that it works correctly. Add a checklist if possible.

Author checklist

  • I have manually tested the change and/or added automation in the form of unit tests or integration tests
  • I have updated the dependencies list
  • I have recompiled and included new protocol buffers to reflect changes I made
  • I have added new test fixtures as needed to support added tests
  • Check this box if a reviewer can merge this pull request after approval (leave it unchecked if you want to do it yourself)
  • I have moved the associated Shortcut story to "Ready for Review"

Reviewer(s) checklist

  • Any new user-facing content that has been added for this PR has been QA'ed to ensure correct grammar, spelling, and understandability.

@codecov
Copy link

codecov bot commented Oct 18, 2022

Codecov upload limit reached ⚠️

This org is currently on the free Basic Plan; which includes 250 free private repo uploads each rolling month. This limit has been reached and additional reports cannot be generated. For unlimited uploads, upgrade to our pro plan.

Do you have questions or need help? Connect with our sales team today at sales@codecov.io

@bbengfort
Copy link
Contributor

@daniellemaxwell please do a git pull -f before making changes to this branch -- I rebased with main after merging in #38

{
"Porthole": {
"ensignUrlConfig": {
"tenantBaseUrl": "process.env.REACT_APP_TENANT_BASE_URL",
Copy link
Contributor

Choose a reason for hiding this comment

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

I could be misunderstanding, but doesn't this set the tenantBaseUrl configuration to the string "process.env.REACT_APP_TENANT_BASE_URL"? I thought the point of the config module was that reasonable defaults could be set and then the configuration could be loaded from the environment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's correct. I should've checked about this and the quarterdeckBaseUrl as I wasn't sure if we wanted to set them to the URLs listed in SC-9979 or list a custom environment as I did here.

Copy link
Contributor

@bbengfort bbengfort left a comment

Choose a reason for hiding this comment

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

@daniellemaxwell ok, well since the config module isn't being used yet - should we go ahead and merge this and take next steps later?

@daniellemaxwell
Copy link
Contributor Author

@bbengfort That's fine. We can also talk about which environment variables may need to be added to the configuration docs.

@daniellemaxwell daniellemaxwell merged commit c653e91 into main Oct 20, 2022
@daniellemaxwell daniellemaxwell deleted the react-config branch October 20, 2022 13:15
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.

None yet

2 participants