Skip to content

Only count the user's last vote

Matthias Käppler requested to merge github/fork/mc1arke/vote-count into master

Created by: mc1arke

Where a user votes multiple times on an item, each of their votes is currently included in the total vote count. This allows users to artificially inflate (or decrease) the importance of an item by voting multiple times on it, and means a user casting a new vote to change their opinion from -1 to +1 just blanks out their previous vote, rather than reversing their input as expected.

This change limits the vote count to only include the last vote a user places, and 'greys out' the superceded vote markers to make it clear which votes are excluded from the count.

Original: gitlab-vote-original

Updated: gitlab-vote-changes

Merge request reports

Loading