Skip to content

Commit e3bb377

Browse files
Source Sendgrid: fix contacts missing records; Remove Messages stream (#21939)
* Source Sendgrid: remove Messages stream * Source Sendgrid: fix contacts schema * Source Sendgrid: remove extra configured catalog * Source Sendgrid: fix contacts stream; add tests * Source Sendgrid: update docs * Source Sendgrid: fix test; disable backward compatibility test * Source Sendgrid: revert tokenAuthenticator * Source Sendgrid: update schema * Source Sendgrid: update primary key * Source Sendgrid: update expected records * Source Sendgrid: fix unit test * Source Sendgrid: update spec for ISO8601 datetime format * Source Sendgrid: update schemas #19969 * Source Sendgrid: update docs * Source Sendgrid: update docs * auto-bump connector version --------- Co-authored-by: Octavia Squidington III <[email protected]>
1 parent 9dd310c commit e3bb377

File tree

20 files changed

+344
-359
lines changed

20 files changed

+344
-359
lines changed

airbyte-config/init/src/main/resources/seed/source_definitions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1576,7 +1576,7 @@
15761576
- name: Sendgrid
15771577
sourceDefinitionId: fbb5fbe2-16ad-4cf4-af7d-ff9d9c316c87
15781578
dockerRepository: airbyte/source-sendgrid
1579-
dockerImageTag: 0.3.0
1579+
dockerImageTag: 0.3.1
15801580
documentationUrl: https://docs.airbyte.com/integrations/sources/sendgrid
15811581
icon: sendgrid.svg
15821582
sourceType: api

airbyte-config/init/src/main/resources/seed/source_specs.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13336,7 +13336,7 @@
1333613336
supportsNormalization: false
1333713337
supportsDBT: false
1333813338
supported_destination_sync_modes: []
13339-
- dockerImage: "airbyte/source-sendgrid:0.3.0"
13339+
- dockerImage: "airbyte/source-sendgrid:0.3.1"
1334013340
spec:
1334113341
documentationUrl: "https://docs.airbyte.com/integrations/sources/sendgrid"
1334213342
connectionSpecification:
@@ -13357,13 +13357,13 @@
1335713357
start_time:
1335813358
title: "Start time"
1335913359
type: "string"
13360+
format: "date-time"
13361+
pattern: "^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(.\\d+)?Z$"
1336013362
description: "Start time in ISO8601 format. Any data before this time point\
1336113363
\ will not be replicated."
1336213364
examples:
13363-
- "2021-12-12"
13364-
- "2021-02-01 13:30:00"
13365-
- "2020-07-18T13:30:00.000Z"
13366-
- "2020-07-18 13:30:00+02:00"
13365+
- "2020-01-01T01:01:01Z"
13366+
- "2020-01-01T01:01:01.000001Z"
1336713367
order: 1
1336813368
supportsNormalization: false
1336913369
supportsDBT: false

airbyte-integrations/connectors/source-sendgrid/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ RUN pip install .
1212
ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
1313
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]
1414

15-
LABEL io.airbyte.version=0.3.0
15+
LABEL io.airbyte.version=0.3.1
1616
LABEL io.airbyte.name=airbyte/source-sendgrid

airbyte-integrations/connectors/source-sendgrid/acceptance-test-config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ tests:
33
spec:
44
- spec_path: "source_sendgrid/spec.json"
55
backward_compatibility_tests_config:
6-
disable_for_version: "0.2.16"
6+
disable_for_version: "0.3.0"
77
connection:
88
- config_path: "secrets/config.json"
99
status: "succeed"
@@ -15,6 +15,8 @@ tests:
1515
status: "failed"
1616
discovery:
1717
- config_path: "secrets/old_config.json"
18+
backward_compatibility_tests_config:
19+
disable_for_version: "0.3.0"
1820
basic_read:
1921
- config_path: "secrets/config.json"
2022
configured_catalog_path: "integration_tests/no_spam_reports_configured_catalog.json"
@@ -36,4 +38,4 @@ tests:
3638
# spam_reports: ["created"]
3739
full_refresh:
3840
- config_path: "secrets/config.json"
39-
configured_catalog_path: "integration_tests/configured_catalog_no_messages.json"
41+
configured_catalog_path: "integration_tests/configured_catalog.json"

airbyte-integrations/connectors/source-sendgrid/integration_tests/configured_catalog.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,6 @@
140140
"sync_mode": "incremental",
141141
"cursor_field": ["created"],
142142
"destination_sync_mode": "append"
143-
},
144-
{
145-
"stream": {
146-
"name": "messages",
147-
"json_schema": {},
148-
"supported_sync_modes": ["full_refresh", "incremental"],
149-
"source_defined_cursor": true,
150-
"default_cursor_field": ["last_event_time"]
151-
},
152-
"sync_mode": "full_refresh",
153-
"cursor_field": ["last_event_time"],
154-
"destination_sync_mode": "append"
155143
}
156144
]
157145
}

airbyte-integrations/connectors/source-sendgrid/integration_tests/configured_catalog_no_messages.json

Lines changed: 0 additions & 145 deletions
This file was deleted.

0 commit comments

Comments
 (0)