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
Somehow, user_users.states->incident is getting set to an incident to which the user's organization does not have access. It should happen to admins and phone volunteers. I think this is happening when phone volunteers answer calls, and then don't log in for months, then lose access to the incident. I've confirmed 260 instances of users with a mismatched user state.
I logged in as user 75, organization 130 (voad@aa...), and the login never completes, getting stuck in the endless spinner of death.
Expected Behavior
Get user_users.states->>incident
If the user is an admin, then allow it to load.
If the user is a phone volunteer AND the incident is more than 2 months old, AND the user's organization does not have access, then then it should revert to the most recent incident to which the organization DOES have access.
If the user is not a phone volunteer or admin AND the organization does not have access to the user states incident, then it should revert to the most recent incident to which the organization DOES have access.
Current Behavior
Unfortunately, this particular bug is not solvable by the user. Logging in via an incognito browser does not work. Clearing states would work, but that requires the user to be able to log in. It currently requires a manual database update.
Description
Somehow,
user_users.states->incident
is getting set to an incident to which the user's organization does not have access. It should happen to admins and phone volunteers. I think this is happening when phone volunteers answer calls, and then don't log in for months, then lose access to the incident. I've confirmed 260 instances of users with a mismatched user state.I logged in as user 75, organization 130 (
voad@aa...
), and the login never completes, getting stuck in the endless spinner of death.Expected Behavior
Get
user_users.states->>incident
Current Behavior
Unfortunately, this particular bug is not solvable by the user. Logging in via an incognito browser does not work. Clearing states would work, but that requires the user to be able to log in. It currently requires a manual database update.
Screenshots
Spinner of death on https://www.crisiscleanup.org/dashboard
Steps to Reproduce
User 75 belongs to organization 130, which does NOT have access to incident 385.
voad@aa...
)UPDATE user_users SET states = '{"incident": 385}' WHERE id = 75;
Tasks
The text was updated successfully, but these errors were encountered: