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

[#6384] Add admin button to delete annotations #7670

Draft
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

HelenWDTK
Copy link
Contributor

@HelenWDTK HelenWDTK commented Apr 1, 2023

Relevant issue(s)

Fixes #6384

What does this do?

Adds comment deletion to the request admin and comments admin pages, for single annotations and bulk deletion

Why was this needed?

Sometimes annotations need deleting entirely to comply with GDPR. This stops admins needing to nag the devs to do it.

Implementation notes

Screenshots

Pro Admin timeline view:
Screenshot 2023-04-01 at 22 41 15
Normal admin view:
Screenshot 2023-04-01 at 22 40 09
Deletion event log:
Screenshot 2023-04-01 at 22 40 55
Comments admin page
Screenshot 2023-04-01 at 22 42 02
Request admin page:
Screenshot 2023-04-01 at 22 42 18
Single annotation edit page
Screenshot 2023-04-01 at 22 42 28

Notes to reviewer

I think this is almost ready now, but there's undoubtedly room for improvement.

@HelenWDTK HelenWDTK linked an issue Apr 1, 2023 that may be closed by this pull request
@gbp gbp changed the title 6384 admin button to delete annotations [#6384] Add admin button to delete annotations Oct 20, 2023
@gbp gbp force-pushed the 6384-admin-button-to-delete-annotations branch from 64c10ef to 65d05f9 Compare November 6, 2023 09:47
@gbp
Copy link
Member

gbp commented Nov 6, 2023

Have rebased over current develop and fixed a few linting warnings.

@garethrees garethrees force-pushed the 6384-admin-button-to-delete-annotations branch 4 times, most recently from 39bea5d to 09f95c7 Compare December 21, 2023 15:57
HelenWDTK and others added 4 commits December 21, 2023 16:01
Also display flash notice for hiding/unhiding

Add id to form so destruction can be separated out from hiding.
We don't store an `outgoing_message_id` parameter now that we use global
ids.
@garethrees garethrees force-pushed the 6384-admin-button-to-delete-annotations branch from 09f95c7 to 6bad1de Compare December 21, 2023 16:03
@garethrees
Copy link
Member

Squashed this down and rebased. Seems to work pretty well.

Copy link
Member

@gbp gbp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The delete multiple button on the index view doesn't seem to work as the submit_tag to going to the wrong controller action.

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

Successfully merging this pull request may close these issues.

Admin button to delete annotations
3 participants