mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-26 06:46:13 +01:00
Support withfullhistory in osc.core.get_request_list again
This commit is contained in:
parent
c6dd9d6a54
commit
3c200caf50
@ -4619,6 +4619,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.
|
||||||
@ -4660,6 +4661,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()
|
||||||
@ -4739,13 +4743,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