analytics/test
RobertJoonas fce909d041
Improve merge imported (#4003)
* Pass the actual date args that are returned in fixtures (just for clarity)

* Change select key from operating_system to os

* Select (not set) from imported data as done from native stats

* Support breakdown by imported os_version

* Remove dead code

The `query.include_imported` is set to `false` from the start when
filters are included.

* Refactor Plausible.Stats.Imported

Extract a function that does group_by and dimension select, instead of
doing both separately inside the merge_imported function body

* Further refactor of Plausible.Stats.Imported

Get rid of code repetition

* Support breakdown by imported browser_version

* Support breakdown by imported referrer

* Support breakdown by imported referrer

* remove redundant if in select

* use greatest instead of coalesce

Co-authored-by: ruslandoga <doga.ruslan@gmail.com>

* add back the :member filter handling in Stats.Imported

---------

Co-authored-by: Uku Taht <uku.taht@gmail.com>
Co-authored-by: ruslandoga <doga.ruslan@gmail.com>
2024-04-16 16:58:22 +01:00
..
e2e Integrate ingestion monitoring data into instatus (#3515) 2023-11-13 15:11:59 +01:00
load Fix script path for k6 load test (#2068) 2022-07-29 09:00:50 -03:00
plausible Improve merge imported (#4003) 2024-04-16 16:58:22 +01:00
plausible_web Improve merge imported (#4003) 2024-04-16 16:58:22 +01:00
priv Replace Geolix with Locus (#2362) 2023-01-17 12:05:09 -03:00
support Reapply "Local CSV exports/imports and S3/UI updates (#3989)" (#3995) (#3996) 2024-04-11 09:15:01 +02:00
workers Reapply "Local CSV exports/imports and S3/UI updates (#3989)" (#3995) (#3996) 2024-04-11 09:15:01 +02:00
test_helper.exs Reapply "Local CSV exports/imports and S3/UI updates (#3989)" (#3995) (#3996) 2024-04-11 09:15:01 +02:00