mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-25 22:36:13 +01:00
- "my requests" is showing requests with open reviews also now
This commit is contained in:
parent
e8505d829b
commit
4d11387b14
1
NEWS
1
NEWS
@ -26,6 +26,7 @@
|
|||||||
- add "maintenancerequest" command to request a maintenance incident from maintenance team
|
- add "maintenancerequest" command to request a maintenance incident from maintenance team
|
||||||
- add "releaserequest" command run a maintenance update release process (for maintenance team only)
|
- add "releaserequest" command run a maintenance update release process (for maintenance team only)
|
||||||
- allow to force the storage of project meta data (to ignore depending repositories for example)
|
- allow to force the storage of project meta data (to ignore depending repositories for example)
|
||||||
|
- "my requests" is showing requests with open reviews also now
|
||||||
|
|
||||||
0.130
|
0.130
|
||||||
- new "revert" command to restore the original working copy file (without
|
- new "revert" command to restore the original working copy file (without
|
||||||
|
@ -5312,14 +5312,30 @@ Please submit there instead, or use --nodevelproject to force direct submission.
|
|||||||
if list_requests:
|
if list_requests:
|
||||||
# try api side search as supported since OBS 2.2
|
# try api side search as supported since OBS 2.2
|
||||||
try:
|
try:
|
||||||
|
requests = []
|
||||||
|
# open reviews
|
||||||
u = makeurl(apiurl, ['request'], {
|
u = makeurl(apiurl, ['request'], {
|
||||||
'view' : 'collection',
|
'view' : 'collection',
|
||||||
'state': 'new',
|
'states': 'review',
|
||||||
|
'reviewstates': 'new',
|
||||||
|
'roles': 'reviewer',
|
||||||
|
'user' : user,
|
||||||
|
})
|
||||||
|
f = http_GET(u)
|
||||||
|
root = ET.parse(f).getroot()
|
||||||
|
for node in root.findall('request'):
|
||||||
|
r = Request()
|
||||||
|
r.read(node)
|
||||||
|
requests.append(r)
|
||||||
|
# open requests
|
||||||
|
u = makeurl(apiurl, ['request'], {
|
||||||
|
'view' : 'collection',
|
||||||
|
'states': 'new',
|
||||||
|
'roles': 'maintainer',
|
||||||
'user' : user,
|
'user' : user,
|
||||||
})
|
})
|
||||||
f = http_GET(u)
|
f = http_GET(u)
|
||||||
root = ET.parse(f).getroot()
|
root = ET.parse(f).getroot()
|
||||||
requests = []
|
|
||||||
for node in root.findall('request'):
|
for node in root.findall('request'):
|
||||||
r = Request()
|
r = Request()
|
||||||
r.read(node)
|
r.read(node)
|
||||||
|
Loading…
Reference in New Issue
Block a user