c2siorg / Codelabz

Codelabz
Apache License 2.0
12 stars 51 forks source link

Replace Upvote/Downvote System with Like/Dislike Feature to Prevent Negative and Infinite Counts #143

Closed lokeshwar777 closed 2 months ago

lokeshwar777 commented 3 months ago

Title: Bug in Upvote/Downvote System Allowing Negative and Infinite Counts

Describe the bug The current upvote/downvote system for tutorials and comments allows negative and infinite counts, which leads to inaccurate and inconsistent data representation.

To Reproduce Steps to reproduce the behavior:

  1. Go to any tutorial or comment.
  2. Click on the downvote button multiple times.
  3. Observe that the count can go negative.
  4. Click on the upvote button repeatedly without limit.
  5. Observe that the count can become excessively large (potentially infinite).

Expected behavior The upvote/downvote system should be replaced with a like/dislike feature that ensures counts are finite and non-negative. Specifically:

Desktop :

Additional context This issue highlights the need for a new like/dislike feature to replace the existing upvote/downvote system. The new implementation should:

github-actions[bot] commented 2 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 2 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.