analytics/lib/plausible_web/controllers/api
Vinicius Brasil 0733efa89e
Delete stats improvements (#2318)
* Move clear stats functions to Plausible.Purge

* Delete both native and imported stats when deleting a site

This commit moves the delete site function to the Plausible.Purge
module, and fixes a bug where deleted sites could leave dangling
imported stats.

* Clear sites.stats_start_date after clearing stats

This commit fixes a bug where resetting stats left an invalid state of
the stats_start_date field, used for GA imports, for example.
2022-10-10 08:55:58 -03:00
..
external_controller.ex Refactor event struct creation function (#2098) 2022-08-16 14:43:10 +03:00
external_sites_controller.ex Delete stats improvements (#2318) 2022-10-10 08:55:58 -03:00
external_stats_controller.ex add upper bound to limit parameter (#2226) 2022-09-16 10:21:44 +03:00
helpers.ex Block Stats API for locked sites (#2302) 2022-10-04 15:34:45 +03:00
internal_controller.ex Update the internal /sites api to paginate results (#1824) 2022-04-18 12:32:01 +03:00
paddle_controller.ex Remove old Sentry code 2021-03-31 11:38:14 +03:00
stats_controller.ex Keep user filter when listing cities, countries, and regions stats (#2030) 2022-07-25 12:19:38 +03:00