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

fix: support int forparent_id inimport_group#2507

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 2 commits intomainfromjlvillal/parent_int
Mar 12, 2023
Merged

Conversation

@JohnVillalovos
Copy link
Member

This will also fix other use cases where an integer is passed in to
MultipartEncoder.

Added unit tests to show it works.

Closes:#2506

@codecov-commenter
Copy link

codecov-commenter commentedMar 4, 2023
edited by codecovbot
Loading

Codecov Report

Merging#2507 (a41539c) intomain (d387d91) willincrease coverage by8.58%.
The diff coverage is100.00%.

@@            Coverage Diff             @@##             main    #2507      +/-   ##==========================================+ Coverage   87.59%   96.17%   +8.58%==========================================  Files          87       87                Lines        5665     5676      +11     ==========================================+ Hits         4962     5459     +497+ Misses        703      217     -486
FlagCoverage Δ
api_func_v482.48% <85.00%> (?)
cli_func_v482.96% <75.00%> (?)
unit87.63% <100.00%> (+0.04%)⬆️

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

Impacted FilesCoverage Δ
gitlab/_backends/requests_backend.py98.36% <100.00%> (+2.36%)⬆️
gitlab/client.py98.79% <100.00%> (+4.83%)⬆️
gitlab/v4/objects/groups.py90.81% <100.00%> (+7.02%)⬆️

... and43 files with indirect coverage changes

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@JohnVillalovos, just a quick initial question on the fix, the rest seems to me an unrelated refactor so I'll look at it a bit later as I'm a bit tired right now 😅

JohnVillalovos reacted with thumbs up emoji
@nejch
Copy link
Member

Sorry for the delay here, I just realized the testing conflicts a bit with those added inhttps://github.com/python-gitlab/python-gitlab/pull/2488/files#diff-fc2667e8a1b0a974c8447eee8fca931262283245469f31693874cad25651c8f1, I'll get back to this on the weekend :)

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@JohnVillalovos, I had some thoughts on the testing structure but will do a follow-up as we have a big mix now from older tests anyway.

I found the tuple of three values confusing. So instead use adataclass to return the three values. It is still confusing but alittle bit less so.Also add some unit tests
This will also fix other use cases where an integer is passed in toMultipartEncoder.Added unit tests to show it works.Closes:#2506
@nejchnejch merged commit90f96ac intomainMar 12, 2023
@nejchnejch deleted the jlvillal/parent_int branchMarch 12, 2023 10:11
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.

Group import fails when parent_id is passed as int

4 participants

@JohnVillalovos@codecov-commenter@nejch

[8]ページ先頭

©2009-2025 Movatter.jp