Skip to content

Commit

Permalink
Merge c2955c0 into 63cde26
Browse files Browse the repository at this point in the history
  • Loading branch information
jberry-suse committed Oct 28, 2017
2 parents 63cde26 + c2955c0 commit 14ede63
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion devel-project.py
Expand Up @@ -12,7 +12,6 @@
from osc.core import get_review_list
from osc.core import http_GET
from osc.core import makeurl
from osc.core import search
from osc.core import show_package_meta
from osc.core import show_project_meta
from osclib.comments import CommentAPI
Expand All @@ -23,6 +22,20 @@
BOT_NAME = 'devel-project'
REMINDER = 'review reminder'

def search(apiurl, queries=None, **kwargs):
if 'request' in kwargs:
# get_review_list() does not support withfullhistory, but search() does.
if queries is None:
queries = {}
request = queries.get('request', {})
request['withfullhistory'] = 1
queries['request'] = request

return osc.core._search(apiurl, queries, **kwargs)

osc.core._search = osc.core.search
osc.core.search = search

def staging_api(args):
Config(args.project)
return StagingAPI(osc.conf.config['apiurl'], args.project)
Expand Down

0 comments on commit 14ede63

Please sign in to comment.