-
Notifications
You must be signed in to change notification settings - Fork 671
feat(client): bootstrap the http backends concept #2391
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
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2391 +/- ##
=======================================
Coverage 95.98% 95.99%
=======================================
Files 80 82 +2
Lines 5360 5372 +12
=======================================
+ Hits 5145 5157 +12
Misses 215 215
Flags with carried forward coverage won't be shown. Click here to find out more.
|
2717a1b
to
07aba4f
Compare
07aba4f
to
e043182
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.
Thanks for breaking this up @lmilbaum! Just a few minor questions.
We used the redminelib approach here IIRC, after poking around github a bit more I think also calling these http backends
, e.g. from gitlab import backends
might make sense, but just a thought.
1cbb77c
to
ba2ee6c
Compare
I would prefer that #2392 lands before this one. It is needed for testing this PR. |
@lmilbaum it shouldn't block if you cherry-pick the commit from #2397 here (feel free to cherry pick already), it seems like the tests in that PR are really meant for this one, then we can really test the method we are changing ( (Our use of Edit: maybe I was a bit quick with that PR and didnt check the tests ;) but in any case on second thought I think the tests can be done in unit tests as we don't make requests against a real server in those. So shouldn't block this PR IMO. |
@nejch could you please take a look. I would like to move forward. Thanks. |
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.
Sorry for the delays @lmilbaum, was out for a week. Looks great, just some tiny questions on the typing approach.
24d5afa
to
da6bc2b
Compare
da6bc2b
to
c9888ef
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.
Thanks again for all the work here @lmilbaum!
Initial implementation of http engine concept. The long-term target is to shift all requests/response processing from the client to the http engine. When that is done for requests then it would be easy enough to add another engine, like httpx.