Fix bug in suggestion algorithm, it was pruning suggestions with

review requests from all teams, not just the team under consideration
 - Legacy-Id: 12257
This commit is contained in:
Ole Laursen 2016-11-03 20:31:44 +00:00
parent 010c20801e
commit 7461409f7f

View file

@ -576,7 +576,7 @@ def suggested_review_requests_for_team(team):
# filter those with existing requests
existing_requests = defaultdict(list)
for r in ReviewRequest.objects.filter(doc__in=requests.iterkeys()):
for r in ReviewRequest.objects.filter(doc__in=requests.iterkeys(), team=team):
existing_requests[r.doc_id].append(r)
def blocks(existing, request):