mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 22:56:15 +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,
|
||||
types=None,
|
||||
ids=None,
|
||||
withfullhistory=False
|
||||
):
|
||||
|
||||
# We don't want to overload server by requesting everything.
|
||||
@ -4660,6 +4661,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()
|
||||
@ -4739,13 +4743,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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user