Rebecca Law
efad58edd8
There is no need to have a separate table to store template monthly statistics. It's easy enough to aggregate the stats from ft_notification_status.
...
This removes the nightly task, and all the dao methods.
The next PR will remove the table.
2019-01-14 16:30:36 +00:00
Rebecca Law
507138cc94
Create a new query for template monthly stats.
2019-01-10 16:24:51 +00:00
Pea Tyczynska
5d806c2437
Adjust tests to new way of querying for notification stats
2018-11-06 14:40:40 +00:00
Rebecca Law
019c6a4e3a
Revert "Purge notifications for configured days of retention"
2018-08-03 14:35:36 +01:00
Rebecca Law
0675f09afb
Need to be able to query the notification statistics for the right number of days.
...
If the request is for the big numbers on the activity page, then we need to use the number right number of days.
Added an end point to get the data retention for the service and notification type, which is needed on the activity page to say how long the report is available for.
2018-07-23 09:56:04 +01:00
Leo Hemsted
be52adc68f
add tests for monthly notification stats
2018-07-03 14:58:32 +01:00
Leo Hemsted
22496d9161
move stats endpoints to new file
...
(no new tests for new endpoint included in this commit)
2018-07-03 14:58:32 +01:00