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
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
..
authorization_test.exs Google APIs integration improvements (#2358) 4 years ago
browsers_test.exs Tests: session properties without the prefixes (#3863) 3 years ago
cities_test.exs Tests: session properties without the prefixes (#3863) 3 years ago
conversions_test.exs Move conversion_rate logic from elixir to clickhouse (#3887) 3 years ago
countries_test.exs Tests: session properties without the prefixes (#3863) 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 Move `add_percentage` logic into clickhouse (#3854) 3 years ago
funnels_test.exs Tests: session properties without the prefixes (#3863) 3 years ago
imported_test.exs Tests: session properties without the prefixes (#3863) 3 years ago
main_graph_test.exs Fix weekly interval bug (#3686) 3 years ago
operating_systems_test.exs Tests: session properties without the prefixes (#3863) 3 years ago
pages_test.exs Reapply conversion rate into Stats API + bugfixes (#3805) 3 years ago
regions_test.exs Tests: session properties without the prefixes (#3863) 3 years ago
screen_sizes_test.exs Fix broken tests (#3867) 3 years ago
sources_test.exs Implement basics of GA4 import (#3851) 3 years ago
suggestions_test.exs Tests: session properties without the prefixes (#3863) 3 years ago
top_stats_test.exs Fix division by zero in imported queries (#3890) 3 years ago