mysociety / citizenconnect

Citizen Connect project for the NHS: reporting problems, leaving reviews
https://www.nhs.uk/careconnect/choices
Other
1 stars 0 forks source link

Timestamps for issues #1291

Open chrismytton opened 10 years ago

chrismytton commented 10 years ago

It would be useful to have a couple more timestamps for auditing and investigation purposes:

stevenday commented 10 years ago

Timestamp for when an email is sent for an issue

This is a good idea - we store timestamps for most other mails. I guess it would just involve changing the mailed field https://github.com/mysociety/citizenconnect/blob/master/issues/models.py#L402 to a timestamp, or adding a new timestamp field in addition to that.

Timestamp for when the status of an issue is changed

This is a bit harder, because the status can change multiple times, or did you just mean a timestamp of when it was last changed? In any case, it's currently possible to get this info from the revisions we store of problems - it's just a bit of a clunky interface to get to them, because you have to go into the Django admin and inspect each version of the issue. I'll add a section to the documentation to explain this better.

stevenday commented 10 years ago

I've added some better docs and raised a new issue to make the display of revision history better: https://github.com/mysociety/citizenconnect/issues/1293