forked from airbytehq/airbyte
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate GA source connectors to per-stream state (airbytehq#17326)
- Loading branch information
1 parent
0dfeb7e
commit 98f61a6
Showing
42 changed files
with
1,310 additions
and
678 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 20 additions & 8 deletions
28
airbyte-integrations/connectors/source-amplitude/integration_tests/sample_state.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,23 @@ | ||
{ | ||
"events": { | ||
"event_time": "2021-05-27 11:59:53.710000" | ||
[ | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "event_time": "2021-05-27 11:59:53.710000" }, | ||
"stream_descriptor": { "name": "events" } | ||
} | ||
}, | ||
"active_users": { | ||
"date": "2021-05-27" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "date": "2021-05-27" }, | ||
"stream_descriptor": { "name": "active_users" } | ||
} | ||
}, | ||
"average_session_length": { | ||
"date": "2021-05-27" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "date": "2021-05-27" }, | ||
"stream_descriptor": { "name": "average_session_length" } | ||
} | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 86 additions & 14 deletions
100
...-integrations/connectors/source-google-analytics-v4/integration_tests/abnormal_state.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,86 @@ | ||
{ | ||
"website_overview": { "ga_date": "2050-05-01" }, | ||
"traffic_sources": { "ga_date": "2050-05-01" }, | ||
"pages": { "ga_date": "2050-05-01" }, | ||
"locations": { "ga_date": "2050-05-01" }, | ||
"monthly_active_users": { "ga_date": "2050-05-01" }, | ||
"four_weekly_active_users": { "ga_date": "2050-05-01" }, | ||
"two_weekly_active_users": { "ga_date": "2050-05-01" }, | ||
"weekly_active_users": { "ga_date": "2050-05-01" }, | ||
"daily_active_users": { "ga_date": "2050-05-01" }, | ||
"devices": { "ga_date": "2050-05-01" }, | ||
"users_per_day": { "ga_date": "2050-05-01" }, | ||
"new_users_per_day": { "ga_date": "2050-05-01" } | ||
} | ||
[ | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "website_overview" } | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "traffic_sources" } | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "pages" } | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "locations" } | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "monthly_active_users" } | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "four_weekly_active_users" } | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "two_weekly_active_users" } | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "weekly_active_users" } | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "daily_active_users" } | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "devices" } | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "users_per_day" } | ||
} | ||
}, | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { "ga_date": "2050-05-01" }, | ||
"stream_descriptor": { "name": "new_users_per_day" } | ||
} | ||
} | ||
] |
Oops, something went wrong.