fix: iids not working as a list in projects.issues.list()#1413
fix: iids not working as a list in projects.issues.list()#1413nejch merged 1 commit intopython-gitlab:masterfrom JohnVillalovos:jlvillal/1407
Conversation
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.
|
|
This doesn't work at the moment. ListAttribute assumes the input is a string. |
|
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. |
|
@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 |
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
Awesome! i just trust functional tests so much more because they catch these real issues and behavior. Thanks :) |
Set the 'iids' values as type ListAttribute so it will pass the list
as a comma-separated string, instead of a list.
Closes: #1407