1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-12-25 01:16:14 +01:00

Merge pull request #1229 from Vogtinator/fixlist

Support withfullhistory in osc.core.get_request_list again
This commit is contained in:
Daniel Mach 2023-01-26 14:56:58 +01:00 committed by GitHub
commit dcc913dd5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4630,6 +4630,7 @@ def get_request_collection(
review_states=None,
types=None,
ids=None,
withfullhistory=False
):
# We don't want to overload server by requesting everything.
@ -4671,6 +4672,9 @@ def get_request_collection(
if ids:
query["ids"] = ",".join(ids)
if withfullhistory:
query["withfullhistory"] = "1"
u = makeurl(apiurl, ['request'], query)
f = http_GET(u)
res = ET.parse(f).getroot()
@ -4750,13 +4754,13 @@ def get_request_list(
"project": project,
"package": package,
"states": req_state,
"withfullhistory": withfullhistory,
}
if req_type is not None:
kwargs["types"] = [req_type]
assert not exclude_target_projects, "unsupported"
assert not withfullhistory, "unsupported"
return get_request_collection(**kwargs)