1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

- "my requests" is showing requests with open reviews also now

This commit is contained in:
Adrian Schröter 2011-04-20 16:53:42 +02:00
parent e8505d829b
commit 4d11387b14
2 changed files with 19 additions and 2 deletions

1
NEWS
View File

@ -26,6 +26,7 @@
- add "maintenancerequest" command to request a maintenance incident from maintenance team
- 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)
- "my requests" is showing requests with open reviews also now
0.130
- new "revert" command to restore the original working copy file (without

View File

@ -5312,14 +5312,30 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if list_requests:
# try api side search as supported since OBS 2.2
try:
requests = []
# open reviews
u = makeurl(apiurl, ['request'], {
'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,
})
f = http_GET(u)
root = ET.parse(f).getroot()
requests = []
for node in root.findall('request'):
r = Request()
r.read(node)