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

Refactor bootstrappers and improve Yaml environment configuration loading #1773

Merged
merged 203 commits into from
Jul 3, 2024

Conversation

caendesilva
Copy link
Member

@caendesilva caendesilva commented Jul 1, 2024

Picks up where #1770 left off and replaces #1771 which was merged by GitHub due to a glitch.

I think adding a dedicated environment configuration loader to get data from the Yaml file could work if it's in between the environment and configuration loaders

This pull request is a story of how I continuously lost my mind.

In short, what we ended up with is a simple system that reads the yaml configuration before the application boots, and injects an environment variable for the site name if it's needed in order to elegantly have it be used in the configuration which is loaded afterwards.

Copy link

codecov bot commented Jul 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (d9080cc) to head (69066ae).
Report is 1 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##              master     #1773   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity      1758      1762    +4     
===========================================
  Files            180       182    +2     
  Lines           4694      4706   +12     
===========================================
+ Hits            4694      4706   +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@caendesilva caendesilva force-pushed the improve-yaml-environment-configuration-loading branch from a6b2906 to 968e044 Compare July 1, 2024 14:46
@caendesilva caendesilva force-pushed the improve-yaml-environment-configuration-loading branch from 894c276 to faf791d Compare July 1, 2024 14:57
@caendesilva caendesilva changed the title Improve Yaml environment configuration loading Refactor bootstrappers and improve Yaml environment configuration loading Jul 1, 2024
@caendesilva caendesilva marked this pull request as ready for review July 3, 2024 16:57
@caendesilva caendesilva merged commit 36859cd into master Jul 3, 2024
24 checks passed
@caendesilva caendesilva deleted the improve-yaml-environment-configuration-loading branch July 3, 2024 17:21
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.

1 participant