analytics/lib
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
..
mix/tasks Revenue tracking: Ingestion and breakdown queries (#2957) 2023-06-12 18:29:17 +01:00
plausible Pass cached site struct down the ingestion pipeline (#3027) 2023-06-14 14:39:06 +01:00
plausible_web Revenue tracking: goal conversions and tracker script (#3019) 2023-06-14 10:23:11 +01:00
workers Allow domain change (#2803) 2023-04-04 10:55:12 +02:00
oban_error_reporter.ex Delete stats improvements (#2318) 2022-10-10 08:55:58 -03:00
plausible_release.ex Start :ssl for migrations (#2818) 2023-04-04 10:47:31 +02:00
plausible_web.ex Prepare base for the funnel PRs merge (#2993) 2023-06-01 15:26:23 +02:00
plausible.ex Clean up after V2 migration (#2868) 2023-04-24 12:17:57 +02:00
sentry_filter.ex Fingerprint DBConnection.ConnectionError in Sentry (#2597) 2023-01-16 13:05:56 +01:00