-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
Conversation
64c10ef
to
65d05f9
Compare
Have rebased over current develop and fixed a few linting warnings. |
09f95c7
to
6bad1de
Compare
Squashed this down and rebased. Seems to work pretty well. |
There was a problem hiding this 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.
905bd19
to
1fec41c
Compare
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.
1fec41c
to
2e0229b
Compare
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. |
322019a
to
1c083f4
Compare
1c083f4
to
1e38524
Compare
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:
Normal admin view:
Deletion event log:
Comments admin page
Request admin page:
Single annotation edit page
Notes to reviewer
I think this is almost ready now, but there's undoubtedly room for improvement.