-
Notifications
You must be signed in to change notification settings - Fork 26
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
Statistics on number of messages sent/received via the site per day/week/month/year #1176
Comments
+1 This would be interesting to know. |
One for #1170 if we don't manage it before. |
I think this is probably covered in #1546 |
#1546 only covers the support mailbox, my reading of this issue is that it also covers |
I've had a quick look, and I don't think there's a json feed that I could grab this from to add to the request stats I'm logging. It is shown on the admin stats page, but I'm not aware it is displayed publicly anywhere at the moment. |
Not a feed, but here's a script to generate the data (by month) and a snapshot at the time of posting. class MessageCountsPerMonth
def to_csv
CSV.generate do |csv|
csv << message_counts.first.keys
message_counts.each do |month|
csv << month.values
end
end
end
def message_counts
incoming_counts = IncomingMessage.group("DATE_TRUNC('month', created_at)").count
outgoing_counts = OutgoingMessage.group("DATE_TRUNC('month', created_at)").count
all_months = (incoming_counts.keys + outgoing_counts.keys).uniq.sort
result = all_months.map do |month|
{
month: month,
incoming_count: incoming_counts[month] || 0,
outgoing_count: outgoing_counts[month] || 0
}
end
result
end
end
File.write('tmp/message-counts.csv', MessageCountsPerMonth.new.to_csv)
|
Don't think we need to automate this right now so closing. Perhaps one to think about nearer #1536. |
Just noting here that using the same formula with the 2022 report we have 109,653 requests / 8,912 inbox threads = 12.3 |
That's a positive change. |
We know we had 100,092 requests made in 2021 https://www.mysociety.org/2021/12/16/whatdotheyknow-transparency-report/
When we compare that to the amount of support mail we deal with, we have a ratio of around one item of "support" mail threads to 13 requests. (Source: Either #1072 or dividing 100,092 by the number of "support" mail messages received in 2021.)
I think that's a really interesting number from the point of view of evaluating how automated the system is. To me it shows what I think is a surprisingly large amount of human intervention required, especially when considering an email thread may contain many messages.
The ratio of support mail threads to messages sent/received via the site would perhaps be another interesting, related, metric.
The average number of messages on a correspondence thread on the site could be derived from statistics on the number of messages sent/received.
The text was updated successfully, but these errors were encountered: