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

refactor: move Gitlab and GitlabList to gitlab/client.py#1301

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:masterfromJohnVillalovos:refactor_jlvillal
Feb 20, 2021
Merged

refactor: move Gitlab and GitlabList to gitlab/client.py#1301

nejch merged 1 commit intopython-gitlab:masterfromJohnVillalovos:refactor_jlvillal
Feb 20, 2021

Conversation

@JohnVillalovos
Copy link
Member

Move the classes Gitlab and GitlabList from gitlab/init.py to the
newly created gitlab/client.py file.

Update one test case that was depending on requests being defined in
gitlab/init.py

@codecov-io
Copy link

codecov-io commentedFeb 15, 2021
edited
Loading

Codecov Report

Merging#1301 (896385c) intomaster (bec2094) willdecrease coverage by0.02%.
The diff coverage is80.28%.

Impacted file tree graph

@@            Coverage Diff             @@##           master    #1301      +/-   ##==========================================- Coverage   80.58%   80.55%   -0.03%==========================================  Files          65       66       +1       Lines        3240     3585     +345     ==========================================+ Hits         2611     2888     +277- Misses        629      697      +68
FlagCoverage Δ
unit80.55% <80.28%> (-0.03%)⬇️

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

Impacted FilesCoverage Δ
gitlab/client.py80.28% <80.28%> (ø)

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updatebec2094...896385c. Read thecomment docs.

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 a lot@JohnVillalovos!

I think you had this mind already if I remember@max-wittig WDYT? It can be split more in a later PR if it balloons.. maybe the http requests stuff could go in its own module at some point.

fromgitlab.clientimportGitlab,GitlabList
fromgitlab.constimport*# noqa
fromgitlab.exceptionsimport*# noqa
fromgitlabimportutils# noqa
Copy link
Member

@nejchnejchFeb 16, 2021
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Are these 2 imports still needed here (utils and requests_toolbelt)? I think they would only be used internally inclient.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I can remove them

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

As a note when I removed:

from gitlab import utils

The functional CLI test failed. So I put it back in.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I suspect those might have just been some flaky functional tests, but I agree. we can keep it for now

@JohnVillalovos
Copy link
MemberAuthor

I've updated it and hopefully addressed all the feedback. Thank you.

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@JohnVillalovos for the delay, could you just rebase? It's just this one added line2bb16fa#diff-b0f8dbe3635cab16df9ce4bef4498422dbc0e6ad816820e00637f8f4e4d3bed0R146

Otherwise looks nice to have a clean init, unless@max-wittig has any more comments :)

Move the classes Gitlab and GitlabList from gitlab/__init__.py to thenewly created gitlab/client.py file.Update one test case that was depending on requests being defined ingitlab/__init__.py
@JohnVillalovos
Copy link
MemberAuthor

Sorry@JohnVillalovos for the delay, could you just rebase? It's just this one added line2bb16fa#diff-b0f8dbe3635cab16df9ce4bef4498422dbc0e6ad816820e00637f8f4e4d3bed0R146

Otherwise looks nice to have a clean init, unless@max-wittig has any more comments :)

Done I believe. But please double check. I believe everything in the two classes (Gitlab and GitlabList) have been moved correctly to the new file from commitd4e7a03

@nejch
Copy link
Member

Sorry@JohnVillalovos for the delay, could you just rebase? It's just this one added line2bb16fa#diff-b0f8dbe3635cab16df9ce4bef4498422dbc0e6ad816820e00637f8f4e4d3bed0R146
Otherwise looks nice to have a clean init, unless@max-wittig has any more comments :)

Done I believe. But please double check. I believe everything in the two classes (Gitlab and GitlabList) have been moved correctly to the new file from commitd4e7a03

Thanks, just checked withgit diff --color-moved=dimmed-zebra origin/master and looks good.

@nejchnejch merged commit2c4fcf8 intopython-gitlab:masterFeb 20, 2021
@JohnVillalovosJohnVillalovos deleted the refactor_jlvillal branchFebruary 24, 2021 01: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

@JohnVillalovos@codecov-io@nejch

[8]ページ先頭

©2009-2025 Movatter.jp