-
Notifications
You must be signed in to change notification settings - Fork 668
fix: iids not working as a list in projects.issues.list() #1413
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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