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/test/plausible_web/controllers/api/stats_controller
ruslandoga 13055aafc0
use windows in 'time on page' queries (#3446)
* use windows in 'time on page' query

* add imported time on page back

* join imported_pages instead of extra query

* don't forget aggregated time on page!

* eh?

* no need for separate window clause

* use dynamic_filter_condition in aggregate_time_on_page

* it's avg, not total

* fix dynamic_filter_condition call

* tests pass

* fewer changes

* fewer changes + feature flag

* base quickfix

* fewer changes

* fewer changes?

* fewer changes!

* replace coalesce with if(empty(),etc)

* make window_aggregate_time_on_page return same result as neighbor_

* breakdown as well

* add failing test

* more info

* more info

* format example

* add failing aggregate.ex test

* fix breakdown.ex windowing time_on_page calculation

* fix aggregate.ex windowing time_on_page calculation
3 years ago
..
authorization_test.exs Google APIs integration improvements (#2358) 4 years ago
browsers_test.exs Props details view (#3196) 3 years ago
cities_test.exs Reject unknown imported cities from queries (#2675) 4 years ago
conversions_test.exs Remove Props FF (#3242) 3 years ago
countries_test.exs Props details view (#3196) 3 years ago
current_visitors_test.exs Conditionally support switching between v1 and v2 clickhouse schemas (#2780) 4 years ago
custom_prop_breakdown_test.exs Update plans_v4.json with new plans IDs (#3436) 3 years ago
funnels_test.exs Update plans_v4.json with new plans IDs (#3436) 3 years ago
main_graph_test.exs Plot revenue metrics on main graph (#3112) 3 years ago
operating_systems_test.exs Props details view (#3196) 3 years ago
pages_test.exs use windows in 'time on page' queries (#3446) 3 years ago
regions_test.exs Harden API input validation (#2869) 4 years ago
screen_sizes_test.exs Props details view (#3196) 3 years ago
sources_test.exs Filter out empty entries when listing stats for UTM props (#3339) 3 years ago
suggestions_test.exs Upgrade Erlang/Elixir stack (#3454) 3 years ago
top_stats_test.exs use windows in 'time on page' queries (#3446) 3 years ago