Skip to content

Commit

Permalink
migrate GA source connectors to per-stream state (airbytehq#17326)
Browse files Browse the repository at this point in the history
  • Loading branch information
alafanechere authored and jhammarstedt committed Oct 31, 2022
1 parent 0dfeb7e commit 98f61a6
Show file tree
Hide file tree
Showing 42 changed files with 1,310 additions and 678 deletions.
22 changes: 11 additions & 11 deletions airbyte-config/init/src/main/resources/seed/source_definitions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
- name: Amplitude
sourceDefinitionId: fa9f58c6-2d03-4237-aaa4-07d75e0c1396
dockerRepository: airbyte/source-amplitude
dockerImageTag: 0.1.13
dockerImageTag: 0.1.14
documentationUrl: https://docs.airbyte.io/integrations/sources/amplitude
icon: amplitude.svg
sourceType: api
Expand Down Expand Up @@ -378,7 +378,7 @@
- name: Google Analytics (Universal Analytics)
sourceDefinitionId: eff3616a-f9c3-11eb-9a03-0242ac130003
dockerRepository: airbyte/source-google-analytics-v4
dockerImageTag: 0.1.25
dockerImageTag: 0.1.26
documentationUrl: https://docs.airbyte.com/integrations/sources/google-analytics-universal-analytics
icon: google-analytics.svg
sourceType: api
Expand Down Expand Up @@ -410,7 +410,7 @@
- name: Google Sheets
sourceDefinitionId: 71607ba1-c0ac-4799-8049-7f4b90dd50f7
dockerRepository: airbyte/source-google-sheets
dockerImageTag: 0.2.17
dockerImageTag: 0.2.18
documentationUrl: https://docs.airbyte.io/integrations/sources/google-sheets
icon: google-sheets.svg
sourceType: file
Expand Down Expand Up @@ -442,7 +442,7 @@
- name: Harvest
sourceDefinitionId: fe2b4084-3386-4d3b-9ad6-308f61a6f1e6
dockerRepository: airbyte/source-harvest
dockerImageTag: 0.1.10
dockerImageTag: 0.1.11
documentationUrl: https://docs.airbyte.io/integrations/sources/harvest
icon: harvest.svg
sourceType: api
Expand Down Expand Up @@ -488,7 +488,7 @@
- name: Intercom
sourceDefinitionId: d8313939-3782-41b0-be29-b3ca20d8dd3a
dockerRepository: airbyte/source-intercom
dockerImageTag: 0.1.26
dockerImageTag: 0.1.27
documentationUrl: https://docs.airbyte.io/integrations/sources/intercom
icon: intercom.svg
sourceType: api
Expand Down Expand Up @@ -558,7 +558,7 @@
- name: LinkedIn Ads
sourceDefinitionId: 137ece28-5434-455c-8f34-69dc3782f451
dockerRepository: airbyte/source-linkedin-ads
dockerImageTag: 0.1.9
dockerImageTag: 0.1.10
documentationUrl: https://docs.airbyte.io/integrations/sources/linkedin-ads
icon: linkedin.svg
sourceType: api
Expand Down Expand Up @@ -590,7 +590,7 @@
- name: Mailchimp
sourceDefinitionId: b03a9f3e-22a5-11eb-adc1-0242ac120002
dockerRepository: airbyte/source-mailchimp
dockerImageTag: 0.2.14
dockerImageTag: 0.2.15
documentationUrl: https://docs.airbyte.io/integrations/sources/mailchimp
icon: mailchimp.svg
sourceType: api
Expand Down Expand Up @@ -1019,7 +1019,7 @@
- name: SurveyMonkey
sourceDefinitionId: badc5925-0485-42be-8caa-b34096cb71b5
dockerRepository: airbyte/source-surveymonkey
dockerImageTag: 0.1.10
dockerImageTag: 0.1.11
documentationUrl: https://docs.airbyte.io/integrations/sources/surveymonkey
icon: surveymonkey.svg
sourceType: api
Expand Down Expand Up @@ -1051,7 +1051,7 @@
- name: TikTok Marketing
sourceDefinitionId: 4bfac00d-ce15-44ff-95b9-9e3c3e8fbd35
dockerRepository: airbyte/source-tiktok-marketing
dockerImageTag: 0.1.15
dockerImageTag: 0.1.16
documentationUrl: https://docs.airbyte.io/integrations/sources/tiktok-marketing
icon: tiktok.svg
sourceType: api
Expand Down Expand Up @@ -1139,7 +1139,7 @@
- name: Zendesk Chat
sourceDefinitionId: 40d24d0f-b8f9-4fe0-9e6c-b06c0f3f45e4
dockerRepository: airbyte/source-zendesk-chat
dockerImageTag: 0.1.9
dockerImageTag: 0.1.10
documentationUrl: https://docs.airbyte.io/integrations/sources/zendesk-chat
icon: zendesk.svg
sourceType: api
Expand All @@ -1155,7 +1155,7 @@
- name: Zendesk Support
sourceDefinitionId: 79c1aa37-dae3-42ae-b333-d1c105477715
dockerRepository: airbyte/source-zendesk-support
dockerImageTag: 0.2.15
dockerImageTag: 0.2.16
documentationUrl: https://docs.airbyte.io/integrations/sources/zendesk-support
icon: zendesk.svg
sourceType: api
Expand Down
24 changes: 12 additions & 12 deletions airbyte-config/init/src/main/resources/seed/source_specs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-amplitude:0.1.13"
- dockerImage: "airbyte/source-amplitude:0.1.14"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/amplitude"
connectionSpecification:
Expand Down Expand Up @@ -3769,7 +3769,7 @@
oauthFlowOutputParameters:
- - "access_token"
- - "refresh_token"
- dockerImage: "airbyte/source-google-analytics-v4:0.1.25"
- dockerImage: "airbyte/source-google-analytics-v4:0.1.26"
spec:
documentationUrl: "https://docs.airbyte.com/integrations/sources/google-analytics-universal-analytics"
connectionSpecification:
Expand Down Expand Up @@ -4257,12 +4257,12 @@
oauthFlowOutputParameters:
- - "access_token"
- - "refresh_token"
- dockerImage: "airbyte/source-google-sheets:0.2.17"
- dockerImage: "airbyte/source-google-sheets:0.2.18"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/google-sheets"
connectionSpecification:
$schema: "http://json-schema.org/draft-07/schema#"
title: "Stripe Source Spec"
title: "Google Sheets Source Spec"
type: "object"
required:
- "spreadsheet_id"
Expand Down Expand Up @@ -4443,7 +4443,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-harvest:0.1.10"
- dockerImage: "airbyte/source-harvest:0.1.11"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/harvest"
connectionSpecification:
Expand Down Expand Up @@ -4868,7 +4868,7 @@
oauthFlowInitParameters: []
oauthFlowOutputParameters:
- - "access_token"
- dockerImage: "airbyte/source-intercom:0.1.26"
- dockerImage: "airbyte/source-intercom:0.1.27"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/intercom"
connectionSpecification:
Expand Down Expand Up @@ -5577,7 +5577,7 @@
path_in_connector_config:
- "credentials"
- "client_secret"
- dockerImage: "airbyte/source-linkedin-ads:0.1.9"
- dockerImage: "airbyte/source-linkedin-ads:0.1.10"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/linkedin-ads"
connectionSpecification:
Expand Down Expand Up @@ -5819,7 +5819,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-mailchimp:0.2.14"
- dockerImage: "airbyte/source-mailchimp:0.2.15"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/mailchimp"
connectionSpecification:
Expand Down Expand Up @@ -10792,7 +10792,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-surveymonkey:0.1.10"
- dockerImage: "airbyte/source-surveymonkey:0.1.11"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/surveymonkey"
connectionSpecification:
Expand Down Expand Up @@ -11070,7 +11070,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-tiktok-marketing:0.1.15"
- dockerImage: "airbyte/source-tiktok-marketing:0.1.16"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/tiktok-marketing"
changelogUrl: "https://docs.airbyte.io/integrations/sources/tiktok-marketing"
Expand Down Expand Up @@ -11625,7 +11625,7 @@
supportsNormalization: false
supportsDBT: false
supported_destination_sync_modes: []
- dockerImage: "airbyte/source-zendesk-chat:0.1.9"
- dockerImage: "airbyte/source-zendesk-chat:0.1.10"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/zendesk-chat"
connectionSpecification:
Expand Down Expand Up @@ -11880,7 +11880,7 @@
path_in_connector_config:
- "credentials"
- "client_secret"
- dockerImage: "airbyte/source-zendesk-support:0.2.15"
- dockerImage: "airbyte/source-zendesk-support:0.2.16"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/zendesk-support"
connectionSpecification:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ RUN pip install .
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.13
LABEL io.airbyte.version=0.1.14
LABEL io.airbyte.name=airbyte/source-amplitude
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" }
}
}
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ COPY main.py ./
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]

LABEL io.airbyte.version=0.1.25
LABEL io.airbyte.version=0.1.26
LABEL io.airbyte.name=airbyte/source-google-analytics-v4
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" }
}
}
]
Loading

0 comments on commit 98f61a6

Please sign in to comment.