talawa-admin icon indicating copy to clipboard operation
talawa-admin copied to clipboard

Organization list doesn't update

Open pranshugupta54 opened this issue 10 months ago • 7 comments

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

pranshugupta54 avatar Apr 06 '24 05:04 pranshugupta54

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.

github-actions[bot] avatar Apr 17 '24 00:04 github-actions[bot]

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

Alfredoeb9 avatar Jul 12 '24 23:07 Alfredoeb9

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

pranshugupta54 avatar Jul 13 '24 00:07 pranshugupta54

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.

Alfredoeb9 avatar Jul 13 '24 00:07 Alfredoeb9

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)

pranshugupta54 avatar Jul 13 '24 00:07 pranshugupta54

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

Alfredoeb9 avatar Jul 13 '24 00:07 Alfredoeb9

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.

github-actions[bot] avatar Aug 27 '24 00:08 github-actions[bot]