-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
WIP do not merge - optional config fields #10260
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Yuri Shkuro <[email protected]>
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
@yurishkuro Sorry for the really long delay in getting to this. I still think this approach is the best way to handle optional config fields. If there were tests in the |
@evan-bradley tests wouldn't be a problem, but I ran into a roadblock that I described in #10266 (comment) |
I opened a ticket upstream go-viper/mapstructure#37 |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
keep |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
I'll have time to look into this next week, apologies for the delay |
Pending upstream fix go-viper/mapstructure#42 |
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Pending another upstream fix go-viper/mapstructure#45 |
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Signed-off-by: Yuri Shkuro <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10260 +/- ##
==========================================
- Coverage 91.80% 91.79% -0.02%
==========================================
Files 424 425 +1
Lines 20094 20114 +20
==========================================
+ Hits 18447 18463 +16
- Misses 1268 1271 +3
- Partials 379 380 +1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Yuri Shkuro <[email protected]>
@mahadzaryab1 fyi this is the main PR I was working on, which needed changes to mapstructure lib. The fun continues, now with contrib packages failing. |
@yurishkuro I tested this PR using type
It seems like Optionals Unmarshal is never called due to the following logic in the Hookfunc. I updated ClientConfig as so:
and updated
Is there something I am doing wrong here ? |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
@yurishkuro Just checking in, any updates on this? I have some time to dig into it this week, let me know if there's anything you'd like me to investigate. |
This PR was marked stale due to lack of activity. It will be closed in 14 days. |
I've got a PR for the upstream patch open at go-viper/mapstructure#52. To test this patch out, I believe we'll need to re-write the existing hooks in |
Description
Experiment with support optional config structs
Link to tracking issue
#10266
Testing
Documentation