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

Bug: Likes and Comments for User Posts not working #1688

Closed
GlenDsza opened this issue Mar 8, 2024 · 6 comments
Closed

Bug: Likes and Comments for User Posts not working #1688

GlenDsza opened this issue Mar 8, 2024 · 6 comments
Assignees
Labels
bug Something isn't working no-issue-activity No issue activity

Comments

@GlenDsza
Copy link
Contributor

GlenDsza commented Mar 8, 2024

Describe the bug
The likes and Comments card which shows comment for specific post in User is not working because ORGANIZATION_POST_LIST query is missing likedBy and comments array which are responsible for above features in UI.

In src/Screen/UserPortal/Home/Home.tsx when we we look at code for rendering posts we require likedBy and comments array to be returned by ORGANIZATION_POST_LIST results which is not being returned as a result above features don't work.

To Reproduce
Steps to reproduce the behavior:

  1. Sign in as user
  2. Open an organization page
  3. Like Or Add comment
  4. Reload the Page the changes would be reset

Expected behavior
On liking or commenting the posts (in user's Organization Dashboard) the changes made should be persistent and be able to render on screen even after reload

Actual behavior
On liking or commenting the posts (in user's Organization Dashboard) the changes made are wiped out. as on reload the new data is not being fetched due to missing attribute in query.

Screenshots

Missing.likedBy.and.Comments.UI.mp4
@GlenDsza GlenDsza added the bug Something isn't working label Mar 8, 2024
@Doraemon012
Copy link
Member

@palisadoes I would like to work on this issue. Please assign this to me.

Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

@Cioppolo14
Copy link
Contributor

Unassigning due to no activity or open PR.

@Doraemon012
Copy link
Member

@Cioppolo14

Sorry for the delay. Due to my college exams, I was not able to spare enough time for the issue. Now as my exams are finished, I will raise the PR as soon as possible.

I'm working on the issue and have completed more than half of the work. Please reassign it to me.

I've already resolved the issue with

  1. The comments on posts
  2. The comments not being shown up after reopening the modal

Here's the current state:

talawa-admin-likes-comments.webm

@Cioppolo14
Copy link
Contributor

@Doraemon012 Thanks for the update! I have reassigned you.

Copy link

This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity No issue activity
Projects
None yet
Development

No branches or pull requests

5 participants