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

added like features to tutorials backend integrated #914

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Huzaif-Ahmed
Copy link
Contributor

Description

###changes that I made
1)I first added upvote and downvote field in tutorial collection
2) created a new colletection tutorial_likes with document id as (tutorial.id_user.id) with fields as given in https://github.com/scorelab/Codelabz/wiki/Database-Design
3) created fujctions for fetching like status and no of likes to a tutorial
4)alloted the no of votes with upvotes-downvotes
5)and then implemented functions for updating likes and like_status
6) also fixed a bug with multiple likes from single user

Related Issue

#887

Motivation and Context

https://github.com/scorelab/Codelabz/wiki/Database-Design

Screenshots or GIF (In case of UI changes):

fbfce52e-cc51-4762-8767-599d571417af.mp4

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

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.

@Huzaif-Ahmed
Copy link
Contributor Author

@shivareddy6 and @ABHISHEK-PANDEY2, your patience is truly valued. I've successfully introduced the 'like' feature for the tutorial, and I'm excited to extend the same improvement to our comments section. @ABHISHEK-PANDEY2, your guidance is very valuable to me. I'm eager to hear your insights on how I can enhance this commit further to align with your expectations. do Suggest me the changes

@shivareddy6
Copy link
Collaborator

Can you check why the cypress tests are getting failed

@shivareddy6
Copy link
Collaborator

resolve conflicts @Huzaif-Ahmed

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.

2 participants