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

Keep key format for CKAN___ env vars if they are declared #9

Merged
merged 2 commits into from
Oct 10, 2023

Conversation

amercader
Copy link
Member

If a config key is declared in the CKAN config declaration, the key is not further processed. This allows to keep eg upper case setttings like SECRET_KEY, WTF_CSRF_ENABLED etc:

CKAN___SECRET_KEY=xxx -> config["SECRET_KEY"] = 'xxx'
CKAN___WTF_CSRF_ENABLED=True -> config["WTF_CSRF_ENABLED"] = True

If a config key is declared in the CKAN config declaration, the key is
not further processed. This allows to keep eg upper case setttings like
SECRET_KEY, WTF_CSRF_ENABLED etc:

    CKAN___SECRET_KEY=xxx -> config["SECRET_KEY"] = 'xxx'
    CKAN___WTF_CSRF_ENABLED=True -> config["WTF_CSRF_ENABLED"] = True
@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (0e2992b) 100.00% compared to head (3deb887) 100.00%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff            @@
##            master        #9   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           21        34   +13     
=========================================
+ Hits            21        34   +13     
Files Coverage Δ
ckanext/envvars/plugin.py 100.00% <100.00%> (ø)

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

@amercader amercader marked this pull request as ready for review October 10, 2023 13:42
@amercader amercader merged commit d5164f3 into master Oct 10, 2023
14 checks passed
@amercader amercader deleted the upper-case-vars branch October 10, 2023 13:46
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.

2 participants