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/lib/plausible/site
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
3 years ago
..
cache Gatekeep ingestion pipeline (#2472) 4 years ago
admin.ex Filter out garbage props by `site.allowed_event_props` (#2907) 4 years ago
cache.ex Pass cached site struct down the ingestion pipeline (#3027) 3 years ago
custom_domain.ex Remove unused custom domain code 5 years ago
domain.ex Make ingest threshold configurable (#2845) 4 years ago
gate_keeper.ex Pass cached site struct down the ingestion pipeline (#3027) 3 years ago
google_auth.ex Configure Google Search Console property 7 years ago
imported_data.ex CRM: Expose rate limiting fields per site (#2429) 4 years ago
membership.ex Allow admins to grant admin rights (#2216) 4 years ago
monthly_report.ex Add and remove recipients for email reports (#28) 7 years ago
removal.ex Keep track of native stats start timestamp when retrieving data (#2715) 4 years ago
shared_link.ex Add unique index to shared link name 6 years ago
spike_notification.ex Do not allow duplicate spike notification to be created 6 years ago
weekly_report.ex Add and remove recipients for email reports (#28) 7 years ago