Comments (6)
Using
tags = commit.refs("tag", get_all=True)
works fine.The documentation is misleading as well due to the fact, that only the first 20 matches are returned.
@cweber-dbs this documentation refers to all types of references (both tags and branches), not necessarily all pages returned by the API, which is covered by the pagination docs. But this is also why we have this runtime warning as it's often confusing in other endpoints.
@JohnVillalovos I guess we could tweak this a bit to also supply the calling method instead if it calls http_list
internally, but sometimes I would almost prefer the interface on this to use a manager like we do with most endpoints, so people would call commit.refs.list()
. WDYT?
from python-gitlab.
Not an answer to this. Did the warning not indicate the file and line number in the user code that caused the warning? I thought it was supposed to do that.
from python-gitlab.
Using tags = commit.refs("tag", get_all=True)
works fine.
The documentation is misleading as well due to the fact, that only the first 20 matches are returned.
from python-gitlab.
Nope, only the reference to utils.py line 199 is included:
/opt/homebrew/lib/python3.10/site-packages/gitlab/utils.py:199: UserWarning: Calling a `list()` method without specifying `get_all=True` or `iterator=True` will return a maximum of 20 items. Your query returned 20 of 246 items. See https://python-gitlab.readthedocs.io/en/v4.4.0/api-usage.html#pagination for more details. If this was done intentionally, then this warning can be supressed by adding the argument `get_all=False` to the `list()` call.
from python-gitlab.
Not sure if you are able to do it or not, but would be interesting if you could apply the small change to utils.py
from #2802
Hopefully the error message would then include the path to the calling code. Though I am surprised and confused that there is no filename at all at the end. I wonder if that could be because it is running on MacOS, which I'm guessing from seeing "homebrew"
from python-gitlab.
I guess this was fixed in #2802 where we're clearer on the calling method, and we forgot to close this. If not, @cweber-dbs feel free to ping us here!
from python-gitlab.
Related Issues (20)
- Unable to initialize repo with readme when creating project on behalf of user HOT 1
- Merge request note update appends instead of replaces HOT 2
- CI: codecov failing at project level HOT 5
- Redirected `head()` requests raise `RedirectError` HOT 3
- GitLab mirror of python-gitlab is out of date HOT 5
- Improve download files from artifacts HOT 3
- Namespace Error / Namespace Ignored HOT 9
- Cant get ProjectRegistryRepository size HOT 4
- Support the approvalrules option "applies_to_all_protected_branches" HOT 3
- CLI: For `list` actions the CLI defaults to `get_all=False`
- gitlab merge request participants list HOT 2
- Should the participants method use `http_list`?
- .play() on job returns 500 even though job is started successfully HOT 6
- Trigger a test project hook
- Add support for testing/triggering Project and Group hooks HOT 2
- Add support for removing avatars in the topics API. HOT 3
- `project-push-rules delete` broken
- Extend support for group-level service-accounts HOT 4
- List of users who approved MR is not returned HOT 8
- GitLabList._data HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-gitlab.