You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
analytics/lib/plausible/stats
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.
5 years ago
..
aggregate.ex Timeout db queries in 10 seconds instead of 5 5 years ago
base.ex Ensure that question marks are encoded properly for the database 5 years ago
breakdown.ex More improvements for CSV export (#1446) 5 years ago
clickhouse.ex Apply usage optimization in background job 5 years ago
countries.ex Improvements to CSV export (#1427) 5 years ago
current_visitors.ex Implement dashboard with new stats module 5 years ago
filter_suggestions.ex Implement dashboard with new stats module 5 years ago
filters.ex Fix sampling in JOIN queries 5 years ago
fragments.ex Fix crash when calculating visit duration with 0 sessions 6 years ago
mod.ex Implement dashboard with new stats module 5 years ago
props.ex Do not return prop names when they are not used 5 years ago
query.ex Fix how sampling is applied when filtering for a goal 5 years ago
timeseries.ex Timeout db queries in 10 seconds instead of 5 5 years ago