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
Karl-Aksel Puulmann 1909743b90
Move conversion_rate logic from elixir to clickhouse (#3887)
* Separate out query building from pagination/execution logic.

* Refactor pageview_goals breakdown query, removing index column from results

* Remove zip_columns logic

* Use common pagination util

* Do everything in a single query for breakdowns for goals

* Order in DB

* Make sure column order is identical

* Calculate CR within the goal breakdown query

* Calculate CR for property breakdowns

* WIP: Calculate group CR

* CR with order_by

* Compatibility fix

* Import Ecto.Query and cleanup

* handle total_visitors the same way as add_percentage

* Handle conversion_rate in aggregate.ex

* Solve rebase fail

* Simplify maybe_add_group_conversion_rate

* Add conversion_rate defaults to 0 test

* Add test for conversion_rate should not be calculated with imported data (failing here and on master)

* Dont include imported data when breakdown by prop or goal

* Remove revenue_nils
3 years ago
..
external_stats_controller Move conversion_rate logic from elixir to clickhouse (#3887) 3 years ago
internal_controller Remove custom domains support + update build options (#3559) 3 years ago
stats_controller Move conversion_rate logic from elixir to clickhouse (#3887) 3 years ago
external_controller_test.exs Write event table session columns (#3865) 3 years ago
external_sites_controller_test.exs Actually enforce proper WordPress spelling (#3710) 3 years ago
internal_controller_test.exs Implement pinned sites (#3469) 3 years ago
paddle_controller_test.exs Run tests in async mode where applicable (#2542) 4 years ago