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
DM-43746: Clean up RemoteButler #992
Conversation
e444325
to
1f6921f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #992 +/- ##
=======================================
Coverage 88.94% 88.94%
=======================================
Files 339 341 +2
Lines 44016 44036 +20
Branches 9071 9072 +1
=======================================
+ Hits 39151 39169 +18
- Misses 3551 3552 +1
- Partials 1314 1315 +1 ☔ View full report in Codecov by Sentry. |
RemoteButler is getting too large, so pull out some HTTP-related methods that can be grouped together in their own class.
1f6921f
to
6d49762
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.
Nice cleanup. Thanks.
content: bytes | None = None, | ||
params: Mapping[str, str | bool] | None = None, | ||
headers: Mapping[str, str] | None = None, | ||
) -> httpx.Response: |
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.
In some sense, this is the most complicated method in the file and the one that might want a couple of sentences to explain it.
6d49762
to
5c3bc97
Compare
Pull out some standalone functions from RemoteButler to a new file to cut down clutter.
5c3bc97
to
c8364de
Compare
Co-authored-by: Tim Jenness <tjenness@lsst.org>
RemoteButler is getting too large, cut down clutter in the main file by factoring out a
RemoteButlerHttpConnection
class and moving some standalone functions to their own file.Checklist
doc/changes
configs/old_dimensions