mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 19:48:50 +03:00
60443726c9
ref https://linear.app/tryghost/issue/ANAL-96/data-discrepancy-between-charts-when-filtering - This fixes the test data so that the session first hit and subsequent hits are in chronological order - It also makes sure there isn't more than 30 minutes between hits, as our tracking script is only designed to keep sessions alive for 30 minutes so the data wasn't realistic - NOTE: This data was generated by a script https://gist.github.com/ErisDS/25bb36f38d4c5a3f01d86f34ea5be707 - which didn't take these things into account Co-authored-by: alejandromav <hi@alejandromav.com> |
||
---|---|---|
.. | ||
utils | ||
analytics_events.ndjson | ||
mockingbird-schema.json | ||
README.md |
Datasource fixtures
NDJSON files
These files are fixtures used for running tests
Schema JSON files
The file mockingbird-schema.json is a schema for generating fake data using the Mockingbird CLI.
The CLI is installed via npm:
npm install -g @tinybirdco/mockingbird-cli
The command I'm currently using to generate the data is:
mockingbird-cli tinybird --schema ghost/tinybird/datasources/fixtures/mockingbird-schema.json --endpoint gcp_europe_west3 --token xxxx --datasource analytics_events --eps 50 --limit 5000