You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when a user likes a blog post, the API response does not include the updated total number of likes. To enhance user feedback and engagement, and save computing power and cost, the backend should be modified to return the total number of likes for a blog post whenever a new like is added. This update will allow the frontend to display the updated like count immediately after the action is performed, improving the overall user experience.
Expected Behavior
When a user likes a blog post, the API response will include the updated total number of likes for that post.
Screenshots
Current response schema
Acceptance Criteria:
Stick to the changes required to fix the particular bug mentioned in description.
Do not change other people's code without appropriate permission.
Testing:
Write test for all updates requiring one
Ensure all existing tests passes [without tampering], alongside the new ones added
The text was updated successfully, but these errors were encountered:
chimeziriobioha
changed the title
[FIX]: Add Number Of BlogLike To Data Returned When A New One Is Created
[FIX]: Add Number Of BlogLike To Data Returned When User Likes A Blog
Aug 22, 2024
Description
Currently, when a user likes a blog post, the API response does not include the updated total number of likes. To enhance user feedback and engagement, and save computing power and cost, the backend should be modified to return the total number of likes for a blog post whenever a new like is added. This update will allow the frontend to display the updated like count immediately after the action is performed, improving the overall user experience.
Expected Behavior
When a user likes a blog post, the API response will include the updated total number of likes for that post.
Screenshots
Current response schema
Acceptance Criteria:
Testing:
The text was updated successfully, but these errors were encountered: