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

feat(config): env support for nested fields #276

Merged
merged 2 commits into from
Aug 2, 2024
Merged

Conversation

aasseman
Copy link
Contributor

@aasseman aasseman commented Aug 2, 2024

Having the possibility of supplying all of the configuration using environment variables is already a requested feature.
This makes sure that we can do so, even for nested configuration fields.

With this, nesting it handled with double underscore in env var name, example:

INDEXER_SERVICE_SUBGRAPHS__NETWORK__QUERY_URL = http[...]

@aasseman aasseman added size:small Small p1 High priority type:feature New or enhanced functionality type:documentation Improvements or additions to documentation labels Aug 2, 2024
@aasseman aasseman requested review from gusinacio and carlosvdr August 2, 2024 18:56
@aasseman aasseman self-assigned this Aug 2, 2024
Copy link
Contributor

github-actions bot commented Aug 2, 2024

Pull Request Test Coverage Report for Build 10220646340

Details

  • 62 of 62 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.3%) to 66.493%

Totals Coverage Status
Change from base Build 10219372095: 0.3%
Covered Lines: 3957
Relevant Lines: 5951

💛 - Coveralls

Copy link
Contributor

@gusinacio gusinacio left a comment

Choose a reason for hiding this comment

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

LGTM

@aasseman aasseman merged commit 738061a into main Aug 2, 2024
10 checks passed
@aasseman aasseman deleted the aasseman/env-config branch August 2, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p1 High priority size:small Small type:documentation Improvements or additions to documentation type:feature New or enhanced functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants