0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Added versioning to all tinybird resources (#21794)

ref https://github.com/TryGhost/Ghost/pull/21765

- This change was split out of
https://github.com/TryGhost/Ghost/pull/21765
- We're adding versioning to all the resources in tinybird so that we
can iterate on them in future in a way that tinybird understands
- The next step is to build an example of what making a change will look
like in versioned world

---------

Co-authored-by: Paco Gonzalez <paco@tinybird.co>
This commit is contained in:
Hannah Wolfe 2024-12-03 17:11:37 +00:00 committed by GitHub
parent 4fa929e1c4
commit 8dc1c8e74d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 25 additions and 7 deletions

View file

@ -1,3 +1,5 @@
VERSION 0
SCHEMA > SCHEMA >
`site_uuid` String, `site_uuid` String,
`post_uuid` String, `post_uuid` String,

View file

@ -1,3 +1,4 @@
VERSION 0
SCHEMA > SCHEMA >
`site_uuid` String, `site_uuid` String,
`date` Date, `date` Date,

View file

@ -1,3 +1,5 @@
VERSION 0
SCHEMA > SCHEMA >
`site_uuid` String, `site_uuid` String,
`date` Date, `date` Date,

View file

@ -1,3 +1,5 @@
VERSION 0
NODE parsed_hits NODE parsed_hits
DESCRIPTION > DESCRIPTION >
Parse raw page_hit events Parse raw page_hit events
@ -84,4 +86,4 @@ SQL >
GROUP BY date, device, browser, location, source, pathname, post_uuid,site_uuid GROUP BY date, device, browser, location, source, pathname, post_uuid,site_uuid
TYPE MATERIALIZED TYPE MATERIALIZED
DATASOURCE analytics_pages_mv DATASOURCE analytics_pages_mv__v0

View file

@ -1,3 +1,5 @@
VERSION 0
NODE parsed_hits NODE parsed_hits
DESCRIPTION > DESCRIPTION >
Parse raw page_hit events Parse raw page_hit events
@ -86,4 +88,4 @@ SQL >
GROUP BY date, session_id, site_uuid GROUP BY date, session_id, site_uuid
TYPE MATERIALIZED TYPE MATERIALIZED
DATASOURCE analytics_sessions_mv DATASOURCE analytics_sessions_mv__v0

View file

@ -1,3 +1,5 @@
VERSION 0
NODE parsed_hits NODE parsed_hits
DESCRIPTION > DESCRIPTION >
Parse raw page_hit events Parse raw page_hit events
@ -90,4 +92,4 @@ SQL >
HAVING b.source != current_domain HAVING b.source != current_domain
TYPE MATERIALIZED TYPE MATERIALIZED
DATASOURCE analytics_sources_mv DATASOURCE analytics_sources_mv__v0

View file

@ -1,3 +1,5 @@
VERSION 0
DESCRIPTION > DESCRIPTION >
Summary with general KPIs per date, including visits, page views, bounce rate and average session duration. Summary with general KPIs per date, including visits, page views, bounce rate and average session duration.
Accepts `date_from` and `date_to` date filter, all historical data if not passed. Accepts `date_from` and `date_to` date filter, all historical data if not passed.

View file

@ -1,3 +1,5 @@
VERSION 0
DESCRIPTION > DESCRIPTION >
Top Browsers ordered by most visits. Top Browsers ordered by most visits.
Accepts `date_from` and `date_to` date filter. Defaults to last 7 days. Accepts `date_from` and `date_to` date filter. Defaults to last 7 days.

View file

@ -1,3 +1,4 @@
VERSION 0
DESCRIPTION > DESCRIPTION >
Top Device Types ordered by most visits. Top Device Types ordered by most visits.

View file

@ -1,3 +1,5 @@
VERSION 0
DESCRIPTION > DESCRIPTION >
Top visiting Countries ordered by most visits. Top visiting Countries ordered by most visits.
Accepts `date_from` and `date_to` date filter. Defaults to last 7 days. Accepts `date_from` and `date_to` date filter. Defaults to last 7 days.

View file

@ -1,3 +1,5 @@
VERSION 0
DESCRIPTION > DESCRIPTION >
Most visited pages for a given period. Most visited pages for a given period.
Accepts `date_from` and `date_to` date filter. Defaults to last 7 days. Accepts `date_from` and `date_to` date filter. Defaults to last 7 days.

View file

@ -1,4 +1,4 @@
VERSION 0
DESCRIPTION > DESCRIPTION >
Top traffic sources (domains), ordered by most visits. Top traffic sources (domains), ordered by most visits.
Accepts `date_from` and `date_to` date filter. Defaults to last 7 days. Accepts `date_from` and `date_to` date filter. Defaults to last 7 days.

View file

@ -1,4 +1,4 @@
VERSION 0
DESCRIPTION > DESCRIPTION >
Visits trend over time for the last 30 minutes, filling the blanks. Visits trend over time for the last 30 minutes, filling the blanks.
Works great for the realtime chart. Works great for the realtime chart.
@ -6,8 +6,6 @@ DESCRIPTION >
TOKEN "dashboard" READ TOKEN "dashboard" READ
TOKEN "stats page" READ TOKEN "stats page" READ
VERSION 0
NODE parsed_hits NODE parsed_hits
DESCRIPTION > DESCRIPTION >
Parse raw page_hit events Parse raw page_hit events