mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-26 19:18:28 -04:00
Don’t break statistics down by sending/failed/delivered
This should: - make the page load faster because it has to render less HTML for each service - make the page easier to scan for services that are sending lots of text messages or letters We used to scan this page to look for services with high failure rates, and the design of the page was gear towards this. Now we have alerting for high failure rates, so the page can focus on volumes instead. This commit also puts the service name above the statistics, so that long service names don’t break the layout of the page.
This commit is contained in:
@@ -505,14 +505,7 @@ def format_stats_by_service(services):
|
||||
yield {
|
||||
'id': service['id'],
|
||||
'name': service['name'],
|
||||
'stats': {
|
||||
msg_type: {
|
||||
'sending': stats['requested'] - stats['delivered'] - stats['failed'],
|
||||
'delivered': stats['delivered'],
|
||||
'failed': stats['failed'],
|
||||
}
|
||||
for msg_type, stats in service['statistics'].items()
|
||||
},
|
||||
'stats': service['statistics'],
|
||||
'restricted': service['restricted'],
|
||||
'research_mode': service['research_mode'],
|
||||
'created_at': service['created_at'],
|
||||
|
||||
Reference in New Issue
Block a user