-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[confighttp] Use configoptional.Optional
for optional fields
#13109
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
base: main
Are you sure you want to change the base?
[confighttp] Use configoptional.Optional
for optional fields
#13109
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #13109 +/- ##
=======================================
Coverage 91.54% 91.54%
=======================================
Files 522 522
Lines 28955 28955
=======================================
Hits 26508 26508
Misses 1931 1931
Partials 516 516 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
I split off a couple of changes into separate PRs since those are clearer to me: |
Also, since I guess it is clear that |
…onal-in-confighttp
…)(nil) (#13168) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Makes it so that unmarshaling into a `None[T]` is equivalent to unmarshaling into a `(*T)(nil)`. The goal is to be able to do #13109 without introducing any changes to the behavior. Needs #13161. <!--Describe what testing was performed and which tests were added.--> #### Testing Add a unit test to compare the behavior of unmarshaling into `(*T)(nil)` with that of unmarshaling into `None[T]` <!--Describe the documentation added.--> #### Documentation Amend docstrings <!--Please delete paragraphs that you did not use before submitting.--> --------- Co-authored-by: Evan Bradley <[email protected]>
Description
Makes the following changes to confighttp:
configoptional.Optional
inconfighttp
for all optional sectionsThis means a bunch of breaking changes. I think it is unfeasible to do this in two steps and I hereby promise that I will fix contrib tests and help anybody affected by this
Link to tracking issue
Fixes #9478