Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Relates to #70
FOIA Statuses
I did some research on FOIA statuses. Based on this and on the way they're rendered on the muckrock site, I'm renaming and reorganzing some statuses.
Ideal Workflow
ack
: Awaiting Acknowledgementprocessed
: Awaiting Processingdone
: CompletedTemporary Blockers
fix
: Additional Action Requiredprocessing
statuses, so requests will stay infix
after they've already been addressedpayment
: Awaiting Paymentpartial
: Partially Completeddone
requestsappealing
: Appealingack
orfix
instead, unfortunatelyRejections
rejected
: Rejectedno_docs
: No Documents Foundlawsuit
: Pending LitigationAbandoned
abandoned
: Duplicate RequestAPI Changes
We would like to be able to display the lifecycle of each FOIL request. This would show how foia requests are being processed by police departments in aggregate. Their API exposes a limited journal of these activities through the
communications
object on a Foia Request.Rather than exposing the whole object in their format, I'm choosing to expose a summary of the data that's included.
Key elements that we could use are the
communication.status
,communication.datetime
as those could show a funnel of how the FOIL request changes over time.We could also attempt to model how many records have been released by looking at the file statistics for
done
andpartial
requests.communication.file_stats
will show total number of pages for files returned in document formats (pdf
,doc
). It's possible for police records to be released aszip
, but those aren't estimated at pages. As far as I can tell, the image files tend to be from email signatures (png
,jpg
,gif
).