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(cli): add _from_parent_attrs to user-project manager (#2558)#2588

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 intopython-gitlab:mainfromw7089:fix-2558
Oct 12, 2023

Conversation

w7089
Copy link

Changes

setting_from_parent_attrs onUserProjectManager and using it in itslist methodresolves#2558 and allows specific user's projects to be returned successfully.

The inspiration for the fix came from_from_parent_attrs = {"user_id": "id"} line ofUserProjectManager.

Tested by running below script with arguments:user-project list --user-id [user_id]

import gitlabgl = gitlab.GitLab(...)gl.auth()import gitlab.cli as clicli.main()

@codecov
Copy link

codecovbot commentedAug 27, 2023
edited
Loading

Codecov Report

Merging#2588 (0f1d0d9) intomain (6ce2149) willincrease coverage by0.00%.
The diff coverage is50.00%.

@@           Coverage Diff           @@##             main    #2588   +/-   ##=======================================  Coverage   96.35%   96.35%           =======================================  Files          87       87             Lines        5656     5657    +1     =======================================+ Hits         5450     5451    +1  Misses        206      206
FlagCoverage Δ
api_func_v482.71% <0.00%> (-0.02%)⬇️
cli_func_v483.18% <50.00%> (+<0.01%)⬆️
unit87.97% <0.00%> (-0.02%)⬇️

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

Files ChangedCoverage Δ
gitlab/v4/objects/users.py96.51% <0.00%> (ø)
gitlab/v4/cli.py91.46% <100.00%> (+0.02%)⬆️

Copy link
Member

@nejchnejch left a comment
edited
Loading

Choose a reason for hiding this comment

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

Thanks@w7089 and sorry for the delay here. I've pushed a functional test so we can make sure this works in the future.

@nejchnejchenabled auto-merge (rebase)October 12, 2023 12:16
@nejchnejch merged commita788cff intopython-gitlab:mainOct 12, 2023
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.

CLI: gitlab user-project list doesn't work
2 participants
@w7089@nejch

[8]ページ先頭

©2009-2025 Movatter.jp