Skip to content

Commit 4d3668d

Browse files
authored
fix(source-intercom): add step granularity for activity logs stream (#38626)
Signed-off-by: Artem Inzhyyants <[email protected]>
1 parent ed216aa commit 4d3668d

File tree

5 files changed

+20
-6
lines changed

5 files changed

+20
-6
lines changed

airbyte-integrations/connectors/source-intercom/metadata.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ data:
1010
connectorSubtype: api
1111
connectorType: source
1212
definitionId: d8313939-3782-41b0-be29-b3ca20d8dd3a
13-
dockerImageTag: 0.6.5
13+
dockerImageTag: 0.6.6
1414
dockerRepository: airbyte/source-intercom
1515
documentationUrl: https://docs.airbyte.com/integrations/sources/intercom
1616
githubIssueLabel: source-intercom

airbyte-integrations/connectors/source-intercom/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = [ "poetry-core>=1.0.0",]
33
build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
6-
version = "0.6.5"
6+
version = "0.6.6"
77
name = "source-intercom"
88
description = "Source implementation for Intercom Yaml."
99
authors = [ "Airbyte <[email protected]>",]

airbyte-integrations/connectors/source-intercom/source_intercom/manifest.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2308,7 +2308,7 @@ definitions:
23082308
- "%s"
23092309
datetime_format: "%s"
23102310
cursor_granularity: "PT1S"
2311-
step: "P30D"
2311+
step: "P{{ config.get('activity_logs_time_step', 30) }}D"
23122312
start_datetime:
23132313
datetime: "{{ config['start_date'] }}"
23142314
datetime_format: "%Y-%m-%dT%H:%M:%SZ"

airbyte-integrations/connectors/source-intercom/source_intercom/spec.json

+16-3
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,32 @@
1919
"title": "Access token",
2020
"type": "string",
2121
"description": "Access token for making authenticated requests. See the <a href=\"https://developers.intercom.com/building-apps/docs/authentication-types#how-to-get-your-access-token\">Intercom docs</a> for more information.",
22-
"airbyte_secret": true
22+
"airbyte_secret": true,
23+
"order": 0
2324
},
2425
"client_id": {
2526
"title": "Client Id",
2627
"type": "string",
2728
"description": "Client Id for your Intercom application.",
28-
"airbyte_secret": true
29+
"airbyte_secret": true,
30+
"order": 1
2931
},
3032
"client_secret": {
3133
"title": "Client Secret",
3234
"type": "string",
3335
"description": "Client Secret for your Intercom application.",
34-
"airbyte_secret": true
36+
"airbyte_secret": true,
37+
"order": 2
38+
},
39+
"activity_logs_time_step": {
40+
"type": "integer",
41+
"default": 30,
42+
"minimum": 1,
43+
"maximum": 91,
44+
"title": "Activity logs stream slice step size (in days)",
45+
"description": "Set lower value in case of failing long running sync of Activity Logs stream.",
46+
"examples": [30, 10, 5],
47+
"order": 3
3548
}
3649
}
3750
},

docs/integrations/sources/intercom.md

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ The Intercom connector should not run into Intercom API limitations under normal
7575

7676
| Version | Date | Pull Request | Subject |
7777
|:--------|:-----------|:---------------------------------------------------------|:---------------------------------------------------------------------------------------------------------------------------------|
78+
| 0.6.6 | 2024-05-24 | [38626](https://github.com/airbytehq/airbyte/pull/38626) | Add step granularity for activity logs stream |
7879
| 0.6.5 | 2024-04-19 | [36644](https://github.com/airbytehq/airbyte/pull/36644) | Updating to 0.80.0 CDK |
7980
| 0.6.4 | 2024-04-12 | [36644](https://github.com/airbytehq/airbyte/pull/36644) | Schema descriptions |
8081
| 0.6.3 | 2024-03-23 | [36414](https://github.com/airbytehq/airbyte/pull/36414) | Fixed `pagination` regression bug for `conversations` stream |

0 commit comments

Comments
 (0)