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

Merged
merged 5 commits into from
Jul 24, 2024

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 5 times, most recently 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.

@gbp gbp self-assigned this Jul 15, 2024
@gbp gbp force-pushed the 6384-admin-button-to-delete-annotations branch from 905bd19 to 1fec41c Compare July 15, 2024 20:50
gbp and others added 3 commits July 23, 2024 16:40
If we're logging an event where an associated object has been deleted
the event won't be able to created due to record being missing.

This change rescues the exception when the record isn't found and
assigns the record params to what would've been the global ID. This
allows us visibility that there was an object associated at one point in
time.
@gbp gbp force-pushed the 6384-admin-button-to-delete-annotations branch from 1fec41c to 2e0229b Compare July 23, 2024 15:47
@gbp
Copy link
Member

gbp commented Jul 23, 2024

I have refactored the event creation so that 1. we create it in the model instead of the controller 2. store the same params we did when we manually deleted comments on WDTK).

Also stripped out the "delete selected" button for now to get the ability to individual comments merged sooner.

@gbp gbp marked this pull request as ready for review July 23, 2024 15:50
@gbp gbp force-pushed the 6384-admin-button-to-delete-annotations branch from 322019a to 1c083f4 Compare July 23, 2024 17:04
@gbp gbp force-pushed the 6384-admin-button-to-delete-annotations branch from 1c083f4 to 1e38524 Compare July 24, 2024 16:15
@gbp gbp merged commit 7b1ddf0 into develop Jul 24, 2024
6 checks passed
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