Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation counter in project page count annotation of removed members #1186

Open
geektortoise opened this issue Jun 16, 2020 · 0 comments
Open

Comments

@geektortoise
Copy link
Member

Test case :
Create a project, add a user, this user create X annotations, remove the user

Current situation :
Annotation counter is at X.
(There is indeed X user_annotation related to this project into the database )

Expected situation :
Annotation counter is at 0.

Cause : the annotation counter count all the annotations not deleted.
If we remove a member, these annotations are not deleted but are no more accessible.

Should we have a trigger on acl_entry for project and users or should the member removal automatically flag annotation as "deleted" and adding a member should reactive them (conflict with soft deletion of annotations) ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant