You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ProjectMergeRequest.pipelines() returns a 'list' instead of documented 'RESTObjectList' #1312
Hmm, it's an easy fix but might be better to deprecate this and add proper managers to MRs now that they also have a create pipeline API endpoint and call them like project pipelines:
@beanaroo this should be fixed when #1323 is merged and released, but then please switch to the list() method asap as the old one will be removed.
BTW it will still return a list with this new method, unless you specifically ask for a generator (as_list=False), but at least the docstrings will be accurate.
Activity
nejch commentedon Feb 21, 2021
Seems like the MR pipelines endpoint has a custom method that only does
http_get()at the moment that just serializes the json:python-gitlab/gitlab/v4/objects/merge_requests.py
Lines 208 to 223 in 3381700
Hmm, it's an easy fix but might be better to deprecate this and add proper managers to MRs now that they also have a create pipeline API endpoint and call them like project pipelines:
merge_request.pipelines.list()merge_request.pipelines.create()Related to #1239
nejch commentedon Feb 23, 2021
@beanaroo this should be fixed when #1323 is merged and released, but then please switch to the
list()method asap as the old one will be removed.BTW it will still return a list with this new method, unless you specifically ask for a generator (
as_list=False), but at least the docstrings will be accurate.msune commentedon Mar 27, 2021
Hi,
Wondering if what I see is remotely related.
mr.pipelines()doesn't seem to honourall=True(that particular MR has 140+ pipelines):However, trying directly the REST API with
per_page=100, which I believe is the max as per Gitlab's docs, returns the first 100 elements:Am I missing something fundamental here? Should I open a separate issue or is it related?
nejch commentedon May 1, 2021
@msune yes this is most likely related because
all=Trueis implemented viahttp_list. So this will be fixed after merging the PR linked above.