Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issue #143: Replace Upvote/Downvote with Like/Dislike System #144

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

lokeshwar777
Copy link
Collaborator

@lokeshwar777 lokeshwar777 commented Jun 14, 2024

Title

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

Description

This pull request addresses issue #143 by replacing the upvote/downvote system with a like/dislike feature for tutorials and comments. This new system ensures that counts are finite and non-negative. The implementation includes new components for handling likes and dislikes, database schema updates, and migration paths to maintain data integrity.

Related Issue

This PR fixes #143.

Motivation and Context

The current upvote/downvote system allows negative and infinite counts, which leads to inaccurate and inconsistent data representation. By transitioning to a like/dislike system, we ensure that counts are properly managed, finite, and non-negative, providing a more accurate representation of user interactions.

How Has This Been Tested?

The changes have been tested through:

  • Manual testing on the desktop environment (macOS, Chrome Version 125.0.6422.141) to confirm that the UI updates correctly and user interactions are accurately reflected.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@lokeshwar777 lokeshwar777 force-pushed the feature/like-dislike-implementation branch from 1f1ead9 to 5c4bc6c Compare July 9, 2024 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace Upvote/Downvote System with Like/Dislike Feature to Prevent Negative and Infinite Counts
1 participant