PalisadoesFoundation / talawa-admin

Admin portal for the Talawa Mobile App. Click on the link below to see our documentation
https://docs.talawa.io/
GNU General Public License v3.0
142 stars 588 forks source link

Organization list doesn't update #1881

Closed pranshugupta54 closed 2 weeks ago

pranshugupta54 commented 7 months ago

Describe the bug If an existing admin becomes an admin for another organization, they need to log out and log back in to view the updated list.

To Reproduce Steps to reproduce the behavior: Assumption: Have an admin account that is admin for some organizations and also a user for some organizations.

  1. Log in via Admin on browser 1.
  2. Log in via Superadmin on browser 2.
  3. Update the admin's role for some organization from user to admin.
  4. Now check browser 1; you won't see the organization for which you were newly made an admin.

Expected behavior Refreshing should show the updated list of organizations for which the user is an admin.

Actual behavior Only old organizations are listed.

Potential internship candidates Please read this if you are planning to apply for a Palisadoes Foundation internship https://github.com/PalisadoesFoundation/talawa/issues/359

github-actions[bot] commented 6 months ago

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.

Alfredoeb9 commented 4 months ago

Hello 👋, I'd like to take this on please. @pranshugupta54

pranshugupta54 commented 4 months ago

Hey @Alfredoeb9, were you able to re-produce the same now? It's an old issue - gotta check if it's still an error

Alfredoeb9 commented 4 months ago

Yes was able to reproduce looks like on the OrgList Screen, the problem is it checks against the localStorage but localStorage only gets updated on the login screen.

pranshugupta54 commented 4 months ago

Yeah so we were actually planning to implement state management for the whole instead of localStorage. (We'll do this after GSoC2024 ends, this may introduce major bugs for all contributors)

Alfredoeb9 commented 4 months ago

Sounds good, that's what I trying for as a solution but didn't find a redux reducer for such category.

github-actions[bot] commented 2 months ago

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.

sethdivyansh commented 1 month ago

@pranshugupta54 can i work on this issue?

SGI-CAPP-AT2 commented 2 weeks ago

@palisadoes @pranshugupta54 , Can I work on this issue?

SGI-CAPP-AT2 commented 2 weeks ago

I think this issue should not be resolved right now as mentioned in comment https://github.com/PalisadoesFoundation/talawa-admin/issues/1881#issuecomment-2226591601 Sorry for wasting the time I will unassign myself