Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nejch merged 1 commit intopython-gitlab:mainfromlmilbaum:http_engines
Dec 5, 2022

Conversation

lmilbaum
Copy link

@lmilbaumlmilbaum commentedNov 24, 2022
edited
Loading

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.

@codecov-commenter
Copy link

codecov-commenter commentedNov 24, 2022
edited
Loading

Codecov Report

Merging#2391 (c9888ef) intomain (faf842e) willincrease coverage by0.00%.
The diff coverage is100.00%.

@@           Coverage Diff           @@##             main    #2391   +/-   ##=======================================  Coverage   95.98%   95.99%           =======================================  Files          80       82    +2       Lines        5360     5372   +12     =======================================+ Hits         5145     5157   +12  Misses        215      215
FlagCoverage Δ
api_func_v483.80% <100.00%> (+0.03%)⬆️
cli_func_v482.46% <100.00%> (+0.03%)⬆️
unit87.82% <100.00%> (+0.02%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
gitlab/client.py98.55% <100.00%> (+<0.01%)⬆️
gitlab/http_backends/__init__.py100.00% <100.00%> (ø)
gitlab/http_backends/requests_backend.py100.00% <100.00%> (ø)

Copy link
Member

@nejchnejch left a 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 thesehttp backends, e.g.from gitlab import backends might make sense, but just a thought.

@lmilbaumlmilbaumforce-pushed thehttp_engines branch 5 times, most recently from1cbb77c toba2ee6cCompareNovember 26, 2022 17:14
@lmilbaumlmilbaum requested a review fromnejchNovember 26, 2022 17:28
@lmilbaum
Copy link
Author

I would prefer that#2392 lands before this one. It is needed for testing this PR.

@nejch
Copy link
Member

nejch commentedNov 26, 2022
edited
Loading

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 (__init__) and not indirectly through another method.

(Our use ofGitlab.from_config() in tests is a bit odd, leading to problems like this one. I think we should move away from it for default tests. Then we can look atfrom_config() independently :) )

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.

@lmilbaum
Copy link
Author

@nejch could you please take a look. I would like to move forward. Thanks.

Copy link
Member

@nejchnejch left a 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.

@lmilbaumlmilbaumforce-pushed thehttp_engines branch 2 times, most recently from24d5afa toda6bc2bCompareDecember 5, 2022 06:49
@lmilbaumlmilbaum requested a review fromnejchDecember 5, 2022 07:07
@nejchnejch changed the titlefeat: Bootstrapping the http_engines conceptfeat(client): bootstrap the http backends conceptDec 5, 2022
Copy link
Member

@nejchnejch left a 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!

@nejchnejch merged commit91a665f intopython-gitlab:mainDec 5, 2022
@lmilbaumlmilbaum deleted the http_engines branchDecember 5, 2022 12:06
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@nejchnejchnejch approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@lmilbaum@codecov-commenter@nejch

[8]ページ先頭

©2009-2025 Movatter.jp