analytics/test
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
..
plausible Show pricing v2 when appropriate 2021-10-22 14:15:43 +02:00
plausible_web More improvements for CSV export (#1446) 2021-11-09 09:51:38 +02:00
support Check site limit for enterprise customers 2021-10-22 11:26:07 +02:00
workers Check site limit for enterprise customers 2021-10-22 11:26:07 +02:00
test_helper.exs Fix new configuration 2021-01-13 17:04:01 +02:00