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:
parent
010c20801e
commit
7461409f7f
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue