fix: iids not working as a list in projects.issues.list() by JohnVillalovos · Pull Request #1413 · python-gitlab/python-gitlab
Repository navigation
fix: iids not working as a list in projects.issues.list() - #1413
Merged
nejch merged 1 commit into python-gitlab:master from JohnVillalovos:jlvillal/1407 Apr 27, 2021
Merged
fix: iids not working as a list in projects.issues.list() #1413 nejch merged 1 commit into python-gitlab:master from JohnVillalovos:jlvillal/1407
Conversation
JohnVillalovos commented Apr 25, 2021 · edited Loading
Copy link Copy Markdown
Member
Set the 'iids' values as type ListAttribute so it will pass the list
as a comma-separated string, instead of a list.
Closes : #1407
codecov-commenter commented Apr 25, 2021 · edited Loading
Copy link Copy Markdown
Codecov Report
@@ Coverage Diff @@ ## master #1413 +/- ## ======================================= Coverage 80.24% 80.24% ======================================= Files 73 73 Lines 4064 4064 ======================================= Hits 3261 3261 Misses 803 803
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov .
|
JohnVillalovos commented Apr 25, 2021
Copy link Copy Markdown
Member
Author
|
This doesn't work at the moment. ListAttribute assumes the input is a string. |
JohnVillalovos commented Apr 25, 2021 · edited Loading
Copy link Copy Markdown
Member
Author
|
This depends on #1415 getting merged or this whole patch chain could be merged and #1415 could be closed. |
JohnVillalovos commented Apr 25, 2021 · edited Loading
Copy link Copy Markdown
Member
Author
|
I tested this and reproduced the issue and then with my change it worked correctly. Likely I should probably update this patch to cover all the other instances of I think all of these API endpoints would need to be updated. This is searching the GitLab source code for users of CommaSeparatedToIntegerArray.
|
JohnVillalovos commented Apr 27, 2021 · edited Loading
Copy link Copy Markdown
Member
Author
|
@nejch I added a functional test that shows this works. I tried the functional test first without the fix and it failed. Failed functional test without fix: https://github.com/python-gitlab/python-gitlab/runs/2449139416?check_suite_focus=true |
fix: iids not working as a list in projects.issues.list()
45f806c
Set the 'iids' values as type ListAttribute so it will pass the list as a comma-separated string, instead of a list. Add a functional test. Closes: #1407
nejch commented Apr 27, 2021
Copy link Copy Markdown
Member
Awesome! i just trust functional tests so much more because they catch these real issues and behavior. Thanks :) |
View reviewed changes
nejch enabled auto-merge April 27, 2021 15:24 nejch merged commit
a6b6cd4
into
python-gitlab : master
Apr 27, 2021
JohnVillalovos
deleted the
jlvillal/1407
branch
April 27, 2021 16:03
nejch
mentioned this pull request
Apr 27, 2021
fix(objects): make lists work for filters in all objects
#1420
Merged
Sign up for free
to join this conversation on GitHub .
Already have an account?
Sign in to comment