-
Notifications
You must be signed in to change notification settings - Fork 136
Closed
Description
Expected behavior
When we leave a project or we are removed from a project by another member we shouldn't see such a project in the project list as we don't have access anymore.
Actual behavior
When we leave a project or we are removed from a project by another member. We can still see the project in the list even after reloading of the project list. But we cannot access the project details page, which is correct.
Steps to reproduce the problem 1 (leave project)
- Use non-manager user for testing like
pshah_customer - Invite
pshah_customeruser to some project usingpshah_mangerwhich can send invites. - Accept the invitation to the project by
pshah_customer. - Leave the project by
pshah_cusomeruser. pshah_customeruser can still see the project he just left in the project list. But if he clicks the project to see details, he get error 404.
Screenshot/screencast
https://monosnap.com/file/kqkUaWEtAxwJ1GDRanqT6Gv0dW8Hni
Steps to reproduce the problem 2 (remove from the project)
- Use non-manager user for testing like
pshah_customer - Invite
pshah_customeruser to some project usingpshah_mangerwhich can send invites. - Accept the invitation to the project by
pshah_customer. - Now remove
pshah_customerfrom the project usingpshah_mangeruser. pshah_customercannot see details page as expected. But he can still see the project he was removed from in the project list.
Screenshot/screencast
https://monosnap.com/file/C64JAT5GP9r28rqXzDQ2qgJpU1GIPk
Issues
I think there are several issues:
- When the user leave the project he comes back to the project listing and as project list is not updated he can still see the project he just left.
- After we realod the project listing page we can still see the project user left or he was removed from. This is a server side issue. Most likely ES index is not updated properly. As project list come from the ES index - and it has wrong information. While project details comes from the DB and when we try to access project details we cannot do it, as DB has an actual data.
- If user has been removed from the project not sure if we should do something. If such user will try to make some actions on the project he would get erros which is ok. If he tries to go to the project listing he would get an outdated list as we don't reload it. I think what can be done here is if user get notification about he was removed from the project, we can check if he still has access to the project and if no - we can show some alert that he don't have access anymore and on clicking
OKuser would be forwarded to the project list, which should be reloaded.
--
Environment
- OS: all
- Browser (w/version): all
- User role (client, copilot or manager): client
- Account used:
pshah_customer