Skip to content

[$70] Project which we left or was removed from is still visible in the list #3059

@maxceem

Description

@maxceem

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_customer user to some project using pshah_manger which can send invites.
  • Accept the invitation to the project by pshah_customer.
  • Leave the project by pshah_cusomer user.
  • pshah_customer user 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_customer user to some project using pshah_manger which can send invites.
  • Accept the invitation to the project by pshah_customer.
  • Now remove pshah_customer from the project using pshah_manger user.
  • pshah_customer cannot 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:

  1. 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.
  2. 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.
  3. 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 OK user 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions