Describe the bug
When viewing a list the number of active reviews a reviewer has doesn't look right.
Its possible that reviews that are withdrawn are not removed from the count.
Janeway version
1.7.0
Expected behavior
This count should only show the number of open reviews a user has.
|
active_reviews_count = models.ReviewAssignment.objects.filter( |
|
is_complete=False, |
|
reviewer=OuterRef("id"), |
|
).values( |
|
"reviewer_id", |
|
).annotate( |
|
rev_count=Count("reviewer_id"), |
|
).values("rev_count") |
Describe the bug
When viewing a list the number of active reviews a reviewer has doesn't look right.
Its possible that reviews that are withdrawn are not removed from the count.
Janeway version
1.7.0
Expected behavior
This count should only show the number of open reviews a user has.
janeway/src/review/logic.py
Lines 51 to 58 in e0552c1