See Incorrect suggested edit review count for more details. This has been fixed earlier this week.
The reason you're seeing two different counts for rejected edit suggestions, seemingly at random, is because the old query was grouping by ReviewTaskResultTypeId
(with a filter for only Approve
, Reject
, and RejectAndEdit
types), and the code was grabbing the first Reject
or RejectAndEdit
grouping and displaying that. So it was displaying either your reject count or your reject-and-edit count, when it should sum the two together.
The new code collects three statistics: the Approve
count, the total Reject
and RejectAndEdit
count, and the Edit
(Improve edit) count, and displays the three separately.