analytics/test/plausible_web/controllers/api
Karl-Aksel Puulmann a181f3eab3
APIv2: TimeSeries using QueryBuilder, release experimental_session_count (#4305)
* Move fragments module under Plausible.Stats.SQL

* Introduce select_merge_as macro

This simplifies some select_merge calls

* Simplify select_join_fields

* Remove a needless dynamic

* wrap_select_columns macro

* Move metrics from base.ex to expression.ex

* Move WhereBuilder under Plausible.Stats.SQL

* Moduledoc

* Improved macros

* Wrap more code

* select_merge_as more

* Move defp to the end

* include.time_labels parsing

* include.time_labels in result

Note that the previous implementation of the labels from TimeSeries.ex was broken

* Apply consistent function in imports and timeseries.ex

* Remove boilerplate

* WIP: Limited support for timeseries-with-querybuilder

* time:week dimension

* cleanup: property -> dimension

* Make querying with time series work

* Refactor: Move special metrics (percentage, conversion rate) to own module

* Explicitly format datetimes

* Consistent include_imported in special metrics

* Solve week-related crash

* conversion_rate hacking

* Keep include_imported consistent after splitting the query

* Simplify do_decide_tables

* Handle time dimensions in imports cleaner

* Allow time dimensions in custom property queries

* time:week handling continued

* cast_revenue_metrics_to_money

* fix `full_intervals` support

* Handle minute/realtime graphs

* experimental_session_count? with timeseries

This becomes required as we try to include visits from sessions by default

* Support hourly data in imports

* Update bounce_rate in more csv tests

* Update some time-series query tests

* Fix for meta.warning being included incorrectly

* Simplify imported.ex

* experimental_session_count flag removal

* moduledoc

* Split interval and time modules
2024-07-09 14:25:02 +03:00
..
external_stats_controller APIv2: TimeSeries using QueryBuilder, release experimental_session_count (#4305) 2024-07-09 14:25:02 +03:00
internal_controller Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
stats_controller APIv2: TimeSeries using QueryBuilder, release experimental_session_count (#4305) 2024-07-09 14:25:02 +03:00
external_controller_test.exs Rename internal build symbols (#3942) 2024-04-29 08:05:33 +02:00
external_sites_controller_test.exs Refactor Sites and Stats API authorization logic (#4297) 2024-07-02 15:09:23 +02:00
internal_controller_test.exs Implement pinned sites (#3469) 2023-11-13 09:08:26 +01:00
paddle_controller_test.exs Unify default pricing currency selection (#4221) 2024-06-14 14:49:22 +02:00