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

core: improve argument parsing #5445

Merged
merged 1 commit into from
Oct 24, 2023
Merged

core: improve argument parsing #5445

merged 1 commit into from
Oct 24, 2023

Conversation

multun
Copy link
Contributor

@multun multun commented Oct 24, 2023

  • Allow all parameters to be set using environment variables starting with CORE_
  • Rename MIDDLEWARE_BASE_URL to CORE_EDITOAST_URL
  • Rename FETCH_INFRA_AUTHORIZATION to CORE_EDITOAST_AUTHORIZATION
  • Rename SENTRY_DSN to CORE_SENTRY_DSN
  • Rename OSRD_API_THREADS to CORE_THREADS

@multun multun requested a review from a team as a code owner October 24, 2023 12:39
@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

Merging #5445 (d1ff2dd) into dev (ac1eaf4) will decrease coverage by 0.01%.
Report is 3 commits behind head on dev.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##                dev    #5445      +/-   ##
============================================
- Coverage     18.89%   18.88%   -0.01%     
  Complexity     2315     2315              
============================================
  Files           854      855       +1     
  Lines        102770   102775       +5     
  Branches       2403     2402       -1     
============================================
  Hits          19414    19414              
- Misses        82015    82020       +5     
  Partials       1341     1341              
Flag Coverage Δ
core 78.73% <0.00%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
core/src/main/java/fr/sncf/osrd/App.java 0.00% <0.00%> (ø)
...re/src/main/java/fr/sncf/osrd/cli/EnvProvider.java 0.00% <0.00%> (ø)
...c/main/java/fr/sncf/osrd/cli/ApiServerCommand.java 0.00% <0.00%> (ø)

- Allow all parameters to be set using environment variables starting with CORE_
- Rename MIDDLEWARE_BASE_URL to CORE_EDITOAST_URL
- Rename FETCH_INFRA_AUTHORIZATION to CORE_EDITOAST_AUTHORIZATION
- Rename SENTRY_DSN to CORE_SENTRY_DSN
- Rename OSRD_API_THREADS to CORE_THREADS
@multun multun merged commit 113dcff into dev Oct 24, 2023
@multun multun deleted the core-arg-parsing branch October 24, 2023 13:26
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.

4 participants