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 the issue of counts not refreshing when liking or disliking a post #137

Open
efonsecab opened this issue Jan 19, 2023 · 0 comments
Open
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@efonsecab
Copy link
Contributor

When you click on the like or dislike icons, the item reflects the status by changing its color, however, the count next to these are not been reflected.

  • In the models folder, create a new folder named "PostStatus", with a model "PostLikedDislikedStatus", with the following columns
    • PostId
    • TotalLikes
    • TotalDislkes
  • Modify the Like and Dislike endpoints to return the newly created model.
  • Modify the respective ClientServices methods to reflect the change in the retutnred model
  • Modify the caller logic with the respective changes, and use the Total properties to refresh the count

Note: You meay need to add two additional properties

  • "IsLikedByCurrentUser"
  • "IsLikedByCurrentUser"
@efonsecab efonsecab added bug Something isn't working good first issue Good for newcomers labels Jan 19, 2023
@efonsecab efonsecab added this to the Core Functionality milestone Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
Status: No status
Development

No branches or pull requests

1 participant