-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Ct 10485/env var none #10629
base: main
Are you sure you want to change the base?
Ct 10485/env var none #10629
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10629 +/- ##
==========================================
- Coverage 88.89% 88.86% -0.04%
==========================================
Files 180 180
Lines 22779 22780 +1
==========================================
- Hits 20250 20244 -6
- Misses 2529 2536 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@dbeatty10 Just checking in to see if this approach aligns with what we need. If there's anything we should discuss further for this feature? |
Hey @kentkr! We haven't yet had a chance to assess #10485 to determine if we'd want to do it or not. It's going to take a close examination because it looks like it was intentionally coded to have its current behavior here and here. We're unlikely to prioritize looking at this more closely any time soon. But it's going to be super handy to have your PR as something tangible to consider 🤩 I'm sorry for any churn this has created for you. Here's the "secret decoder ring" for the GitHub labels we use for issues:
The best way to avoid churn for community PRs is when they are for |
Thanks @dbeatty10! I'll keep an eye out for the community tags next time. I have a few more questions and comments but I'll add them to the original issue. |
Resolves #10485
Problem
none
is not acceptable as a default forenv_var
. It throws an error saying the env var is not defined. This behavior is unexpected and different thanvar
Solution
I used a sentinel approach: the default is an empty object. If that object gets overwritten with
None
it's ok. If not it throws the env var missing exception.Checklist