talawa-api
talawa-api copied to clipboard
User membershipRequest showing unexpected behavior
Describe the bug
before testing set org's userRegistrationRequired: true
.
Three cases of unexpected behaviour related to membershipRequests
case 1. Everytime register with a fresh account, new membershipRequest
is being added to org's membershipRequests field but not to user's membershipRequests field.
case 2. Even if the requests are being added to the org's membershipRequests field but they are not fetchable in the org's query.
case 3. As soon as we send a request through the sendMembershipRequest mutation all the previously added requests are also now fetchable.
To Reproduce Steps to reproduce the behavior:
Case 1:
- Register with a fresh account
- check the org's membershipRequests field
- check the new user's membershipRequests field You will notice the membershipRequest is will be added to the org's membershipRequests field but the same will not be reflected in the user's membershipRequests field.
Case 2:
- signup with multiple new accounts to a single org.
- Now compare org's membershipRequests list in the database and the membershipRequests list fetched by the
organizations
query. you will notice a mismatch of number of requests.
https://github.com/PalisadoesFoundation/talawa-api/assets/120930148/161d1161-e841-47f2-a722-fcaf96b6a737
Remember this org to reproduce case 3.
Case 3:
- Signup with a fresh account by choosing an org different from the org used in case 2.
- Now use sendMembershipRequest mutation and send a request to the org said in case 2.
- Now compare org's membershipRequests list in the database and the membershipRequests list fetched by the
organizations
query. you will notice the mismatch of number of requests disappears.
https://github.com/PalisadoesFoundation/talawa-api/assets/120930148/961e8ca9-d89e-4da9-8e1a-156200b8b1bd
Additional details Add any other context or screenshots about the feature request here.
Potential internship candidates Please read this if you are planning to apply for a Palisadoes Foundation internship https://github.com/PalisadoesFoundation/talawa/issues/359
I would like to work on it .
Assign me this issue please
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.
Hey @AVtheking any update on this?
Hi @Azad99-9 was busy due to my exams.. will start working on it from tomorrow.
Unassigning myself busy in some other issue.
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.
I would like to work on this issue
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.
Working on it
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.
I am unassigning myself from my due to being occupied with other commitments.
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.
Can I be assigned this issue?
Working on it might take a few days..
I've fixed case 1. Would you prefer I submit a PR for this now, or should I complete the fixes for the other two cases first and then make a single PR?
please do everything in a single PR and share a video of it too.