From e71fe16b47835aa4db2834e98c7ffc6bdec36723 Mon Sep 17 00:00:00 2001 From: Max Wittig Date: Tue, 9 Jun 2020 11:39:43 +0200 Subject: fix: disable default keyset pagination Instead we set pagination to offset on the other paths --- gitlab/__init__.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'gitlab') diff --git a/gitlab/__init__.py b/gitlab/__init__.py index d02389d..1439be7 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -643,17 +643,7 @@ class Gitlab(object): get_all = kwargs.pop("all", False) url = self._build_url(path) - order_by = kwargs.get("order_by") - pagination = kwargs.get("pagination") page = kwargs.get("page") - if ( - path in ALLOWED_KEYSET_ENDPOINTS - and (not order_by or order_by == "id") - and (not pagination or pagination == "keyset") - and not page - ): - kwargs["pagination"] = "keyset" - kwargs["order_by"] = "id" if get_all is True and as_list is True: return list(GitlabList(self, url, query_data, **kwargs)) -- cgit v1.2.1