mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-12 16:56:15 +01:00
Merge pull request #1229 from Vogtinator/fixlist
Support withfullhistory in osc.core.get_request_list again
This commit is contained in:
commit
dcc913dd5a
@ -4630,6 +4630,7 @@ def get_request_collection(
|
|||||||
review_states=None,
|
review_states=None,
|
||||||
types=None,
|
types=None,
|
||||||
ids=None,
|
ids=None,
|
||||||
|
withfullhistory=False
|
||||||
):
|
):
|
||||||
|
|
||||||
# We don't want to overload server by requesting everything.
|
# We don't want to overload server by requesting everything.
|
||||||
@ -4671,6 +4672,9 @@ def get_request_collection(
|
|||||||
if ids:
|
if ids:
|
||||||
query["ids"] = ",".join(ids)
|
query["ids"] = ",".join(ids)
|
||||||
|
|
||||||
|
if withfullhistory:
|
||||||
|
query["withfullhistory"] = "1"
|
||||||
|
|
||||||
u = makeurl(apiurl, ['request'], query)
|
u = makeurl(apiurl, ['request'], query)
|
||||||
f = http_GET(u)
|
f = http_GET(u)
|
||||||
res = ET.parse(f).getroot()
|
res = ET.parse(f).getroot()
|
||||||
@ -4750,13 +4754,13 @@ def get_request_list(
|
|||||||
"project": project,
|
"project": project,
|
||||||
"package": package,
|
"package": package,
|
||||||
"states": req_state,
|
"states": req_state,
|
||||||
|
"withfullhistory": withfullhistory,
|
||||||
}
|
}
|
||||||
|
|
||||||
if req_type is not None:
|
if req_type is not None:
|
||||||
kwargs["types"] = [req_type]
|
kwargs["types"] = [req_type]
|
||||||
|
|
||||||
assert not exclude_target_projects, "unsupported"
|
assert not exclude_target_projects, "unsupported"
|
||||||
assert not withfullhistory, "unsupported"
|
|
||||||
|
|
||||||
return get_request_collection(**kwargs)
|
return get_request_collection(**kwargs)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user