analytics/lib/plausible/ingestion
Vini Brasil 8834486a19
Pass cached site struct down the ingestion pipeline (#3027)
* Pass cached site struct down the ingestion pipeline

Revenue goals need the cached site struct during ingestion to get the
goals name and currency. This cache lookup is not necessary as
`GateKeeper.check/1`, which is called first in the ingestion pipeline,
could already return the site struct from the cache.

This commit changes `GateKeeper.check/1` to return the site struct
instead of the site ID. Moreover, this commit changes the ingestion
pipeline to avoid calling the sites cache twice.

Related: https://github.com/plausible/analytics/pull/2957#discussion_r1203921549

* Remove revenue_goals unnecessary fallback

* Change duplicate child_id in cache test

* Remove revenue goal condition from cache query

* Remove Plausible.DataCase.reload/1
2023-06-14 14:39:06 +01:00
..
counters use ecto_ch (#2890) 2023-05-25 09:26:50 +02:00
city_overrides.ex Ignore unknown countries (#2556) 2023-01-03 10:35:23 -03:00
counters.ex Switch to new clickhouse adapter (ch/chto) (#2733) 2023-03-21 09:55:59 +01:00
event.ex Pass cached site struct down the ingestion pipeline (#3027) 2023-06-14 14:39:06 +01:00
geolocation.ex Replace Geolix with Locus (#2362) 2023-01-17 12:05:09 -03:00
request.ex Revenue tracking: Ingestion and breakdown queries (#2957) 2023-06-12 18:29:17 +01:00