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

Commit6d941bd

Browse files
Merge pull request#1045 from python-gitlab/revert-1003-feat/all-keyset-pagination
Revert "feat: use keyset pagination by default for `all=True`"
2 parents6c5458a +6f843b6 commit6d941bd

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

‎docs/api-usage.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,6 @@ listing methods support the ``page`` and ``per_page`` parameters:
204204
By default GitLab does not return the complete list of items. Use the ``all``
205205
parameter to get all the items when using listing methods:
206206

207-
..warning::
208-
209-
The all=True option uses keyset pagination by default if order_by is not supplied,
210-
or if order_by="id".
211-
212207
..code-block::python
213208
214209
all_groups= gl.groups.list(all=True)
@@ -408,3 +403,4 @@ parameter to that API invocation:
408403
409404
gl= gitlab.gitlab(url, token,api_version=4)
410405
gl.projects.import_github(ACCESS_TOKEN,123456,"root",timeout=120.0)
406+

‎gitlab/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -641,12 +641,6 @@ def http_list(self, path, query_data=None, as_list=None, **kwargs):
641641
get_all=kwargs.pop("all",False)
642642
url=self._build_url(path)
643643

644-
# use keyset pagination automatically, if all=True
645-
order_by=kwargs.get("order_by")
646-
ifget_alland (notorder_byororder_by=="id"):
647-
kwargs["pagination"]="keyset"
648-
kwargs["order_by"]="id"
649-
650644
ifget_allisTrueandas_listisTrue:
651645
returnlist(GitlabList(self,url,query_data,**kwargs))
652646

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp