analytics/test/plausible_web/controllers/CSVs/30d
Matt Colligan 29e37c8342 More improvements for CSV export (#1446)
* Round time_on_page metric returned by 'pages' API

This rounds the `time_on_page` metric returned as part of the `pages`
API to the nearest second. While this shows no apparent change in the
web UI, it removes the decimal from the exported data in `pages.csv`.

* Tidy up export tests

* Round time_on_page in db query

* Add goal to CSV export tests

* Display CSV export spinner until download is ready

The mechanism used to make the page aware that the download is ready is:

- Client code sets a cookie and requests download.
- Server code handles download and removes cookie when complete.
- Client code polls every 1s to check the cookies, removing spinner when
  the export cookie is removed.
2021-11-09 09:51:38 +02:00
..
browsers.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
conversions.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
countries.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
devices.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
entry_pages.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
exit_pages.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
operating_systems.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
pages.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
sources.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
utm_campaigns.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
utm_mediums.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
utm_sources.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
visitors.csv More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00