-
Notifications
You must be signed in to change notification settings - Fork 67
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
Centralize URLClient logic to the Request package #205
Centralize URLClient logic to the Request package #205
Conversation
Codecov Report
@@ Coverage Diff @@
## master #205 +/- ##
=========================================
+ Coverage 45.85% 49.3% +3.45%
=========================================
Files 64 64
Lines 2133 1937 -196
=========================================
- Hits 978 955 -23
+ Misses 1066 910 -156
+ Partials 89 72 -17
Continue to review full report at Codecov.
|
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.
Rebase off master to facilitate review/merge and re-request review from me.
Alternately, wait for dependent #203 to be accepted and merged to re-request a review from me.
Signed-off-by: Brandon Forster <me@brandonforster.com>
d48a9b4
to
4b1aba3
Compare
Signed-off-by: Brandon Forster <me@brandonforster.com>
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.
LGTM.
Fixes #196.
This is the final PR for #196. This PR moves all calls of
URLPrefix
to therequest
package to reduce duplication.There are two places I would like to call out for special review:
ValueDescriptorsUsage()
in metadata/provision_watcher.go andsendLog()
in `logger/logger.go.These two functions required me creating a new URLClient that returns an empty string to fulfill the contract and preserve functionality. I did my best, but am not tremendously happy with this solution and would like any suggestions on how to improve it.