-
Notifications
You must be signed in to change notification settings - Fork 64
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
Fixes typo in Caching envvar #424
Fixes typo in Caching envvar #424
Conversation
Envvar to set caching mode was previously CLOUPATHLIB_FILE_CACHE_MODE (missing D in CLOUDPATHLIB). This commit fixes this typo and introduces some code to help migrate projects to the new envvar. The current logic for migration warnings is: - If the old envvar is set and not the new one, use the old one and issue a deprecation warning - If the old and new envvars are set, use the new version and issue a warning if the two disagree
679ffc2
to
ca3b77d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks! I think this should be good when the tests are passing. You should be able to run locally to diagnose with the make test
command:
https://cloudpathlib.drivendata.org/stable/contributing/#tests
Could you also file an issue to remove the deprecated code in a future release?
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #424 +/- ##
========================================
- Coverage 93.8% 93.4% -0.4%
========================================
Files 23 23
Lines 1639 1646 +7
========================================
+ Hits 1538 1539 +1
- Misses 101 107 +6
|
Moving to repo-local branch where the live backend tests can run. Thanks @mynameisfiber! |
* Fixes typo in Caching envvar Envvar to set caching mode was previously CLOUPATHLIB_FILE_CACHE_MODE (missing D in CLOUDPATHLIB). This commit fixes this typo and introduces some code to help migrate projects to the new envvar. The current logic for migration warnings is: - If the old envvar is set and not the new one, use the old one and issue a deprecation warning - If the old and new envvars are set, use the new version and issue a warning if the two disagree * Added deprecation version * Fully reset envvars after testing Co-authored-by: Micha Gorelick <[email protected]>
Envvar to set caching mode was previously CLOUPATHLIB_FILE_CACHE_MODE (missing D in CLOUDPATHLIB). This commit fixes this typo and introduces some code to help migrate projects to the new envvar. The current logic for migration warnings is:
Closes #423
Contributor checklist:
CONTRIBUTING.md
Closes #issue
appears in the PR summary (e.g.,Closes #123
).HISTORY.md
with the issue that is addressed and the PR you are submitting. If the top section is not `## UNRELEASED``, then you need to add a new section to the top of the document for your change.