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
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
..
auth Wrap user deletion in DB transaction (#2964) 4 years ago
billing Ignore missing subscription on update (#2930) 4 years ago
data_migration use ecto_ch (#2890) 4 years ago
event Clean up after V2 migration (#2868) 4 years ago
funnel Implement backend core for funnels (#3023) 3 years ago
goal Implement backend core for funnels (#3023) 3 years ago
google use ecto_ch (#2890) 4 years ago
helpers improve transfer ownership error message (#2651) 4 years ago
imported Switch to new clickhouse adapter (ch/chto) (#2733) 4 years ago
ingestion Pass cached site struct down the ingestion pipeline (#3027) 3 years ago
sentry Use finch in sentry client (#1996) 4 years ago
session Clean up after V2 migration (#2868) 4 years ago
site Pass cached site struct down the ingestion pipeline (#3027) 3 years ago
stats Fix queries with wildcard goals (#3015) 3 years ago
telemetry Gatekeep ingestion pipeline (#2472) 4 years ago
application.ex Split clickhouse repos - making the main one read only (#2826) 4 years ago
async_insert_repo.ex Switch to new clickhouse adapter (ch/chto) (#2733) 4 years ago
cldr.ex Revenue tracking: Add currency field to goal creation (#2948) 4 years ago
clickhouse_event_v2.ex Revenue tracking: Ingestion and breakdown queries (#2957) 3 years ago
clickhouse_repo.ex Switch to new clickhouse adapter (ch/chto) (#2733) 4 years ago
clickhouse_session_v2.ex use ecto_ch (#2890) 4 years ago
data_migration.ex Make self-hosted data migration easier (#2865) 4 years ago
funnel.ex Implement backend core for funnels (#3023) 3 years ago
funnels.ex Implement backend core for funnels (#3023) 3 years ago
geo.ex Stop logging invalid_address errors from Locus (#2604) 4 years ago
goals.ex Pass cached site struct down the ingestion pipeline (#3027) 3 years ago
http_client.ex Trace external HTTP requests (#2419) 4 years ago
import_deletion_repo.ex Split clickhouse repos - making the main one read only (#2826) 4 years ago
ingest_repo.ex Switch to new clickhouse adapter (ch/chto) (#2733) 4 years ago
mailer.ex Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
mailer_test.exs Do not report hard bounce e-mail errors to Sentry (#2361) 4 years ago
open_telemetry.ex Remove ingestion requests and Oban queries from OTEL (#2543) 4 years ago
prom_ex.ex Add extra error info + telemetry for AsyncInsertRepo (#2708) 4 years ago
purge.ex Split clickhouse repos - making the main one read only (#2826) 4 years ago
repo.ex Pagination for sites listing (#994) 6 years ago
site.ex Add revenue metrics in StatsController instead of Stats.Breakdown (#3028) 3 years ago
sites.ex Associate goals with sites, not domains (#2828) 4 years ago
stats.ex Implement backend core for funnels (#3023) 3 years ago
themes.ex Adds dark mode to entire dashboard (#467) 6 years ago
timezones.ex Fix timezone list when time changes (#2268) 4 years ago