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

Show incoming message attachments in admin #5334

Merged
merged 2 commits into from
Aug 14, 2019

Conversation

garethrees
Copy link
Member

@garethrees garethrees commented Aug 8, 2019

Relevant issue(s)

https://github.com/mysociety/sysadmin/issues/1169

What does this do?

  • Minor code cleanup
  • Lists FoiAttachments related to an IncomingMessage at AdminIncomingMessageController#edit.

Why was this needed?

When handling data breaches we need to find the hexdigest of the
attachment to ensure it gets purged from all caches / backups etc.

Its quite hard to do this – even from the console – and any console
commands are prone to error. Its easier to just show the associated
attachments on the admin interface, along with some less user-friendly
information that's useful for admin purposes.

It turned out it was easier to add this than explain in our internal guide
how to find the hexdigest of a particular attachment through the rails
console.

This might also be a nice point at which to link to individual attachments as part of #1005.

Implementation notes

Screenshots

Screenshot 2019-08-08 at 16 12 29

Screenshot 2019-08-08 at 16 12 43

Notes to reviewer

Copy link

@lizconlan lizconlan left a comment

Choose a reason for hiding this comment

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

👍 nice feature, works well!

@garethrees
Copy link
Member Author

Noting to myself to remember to add a changelog entry

* Hash style
* Quote style
* Brace padding
* Line spacing
* DSL Parenthesis (don't need them for select tag)
When handling data breaches we need to find the hexdigest of the
attachment to ensure it gets purged from all caches / backups etc.

Its quite hard to do this – even from the console – and any console
commands are prone to error. Its easier to just show the associated
attachments on the admin interface, along with some less user-friendly
information that's useful for admin purposes.
@mysociety-pusher mysociety-pusher force-pushed the show-incoming-message-attachments-in-admin branch from 76bab0b to 392a2da Compare August 14, 2019 16:26
@mysociety-pusher mysociety-pusher merged commit 392a2da into develop Aug 14, 2019
@mysociety-pusher mysociety-pusher deleted the show-incoming-message-attachments-in-admin branch August 14, 2019 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants