Skip to content

Commit

Permalink
Reverse query to report owners with 0 patches merged
Browse files Browse the repository at this point in the history
No wonder they were not reported: we were looking for those with less than 5
merged patches among those with merged patches. Quick solution is reversing
the query, probably not the most efficient way or maybe yes if newbies grow
more than serial patchers.
  • Loading branch information
nemobis committed Nov 2, 2013
1 parent 9404afe commit 66b0f2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reports/open-changesets-by-owner-newbie.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@
SUM( gc_project == 'mediawiki/core' ) as open_core
FROM changesets
WHERE gc_status = 'NEW'
AND gc_owner IN (
AND gc_owner NOT IN (
SELECT gc_owner
FROM changesets
WHERE gc_status = 'MERGED'
GROUP BY gc_owner
HAVING COUNT( gc_owner ) < 5
HAVING COUNT( gc_owner ) >= 5
)
GROUP BY gc_owner;
''')
Expand Down

0 comments on commit 66b0f2a

Please sign in to comment.