Skip to content

Commit

Permalink
fix(source-intercom): incremental not emitting state (#52132)
Browse files Browse the repository at this point in the history
  • Loading branch information
darynaishchenko authored Jan 29, 2025
1 parent bdfc3c2 commit 2359e36
Show file tree
Hide file tree
Showing 6 changed files with 84 additions and 109 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _get_request_option(self, option_type: RequestOptionType, stream_slice: Stre
return {}

def get_stream_state(self) -> StreamState:
return self._state
return self._state.copy()

def select_state(self, stream_slice: Optional[StreamSlice] = None) -> Optional[StreamState]:
return self.get_stream_state()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,5 @@
"updated_at": 7626086649
}
}
},
{
"type": "STREAM",
"stream": {
"stream_descriptor": {
"name": "activity_logs"
},
"stream_state": {
"created_at": 7626086649
}
}
}
]
Original file line number Diff line number Diff line change
@@ -1,19 +1,5 @@
{
"streams": [
{
"stream": {
"name": "activity_logs",
"json_schema": {},
"supported_sync_modes": ["full_refresh", "incremental"],
"source_defined_cursor": true,
"default_cursor_field": ["created_at"],
"source_defined_primary_key": [["id"]]
},
"sync_mode": "incremental",
"cursor_field": ["created_at"],
"primary_key": [["id"]],
"destination_sync_mode": "append"
},
{
"stream": {
"name": "companies",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 5.14.0
version: 6.28.0

definitions:
## bases
Expand Down
5 changes: 2 additions & 3 deletions airbyte-integrations/connectors/source-intercom/metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ data:
hosts:
- api.intercom.io
connectorBuildOptions:
baseImage: docker.io/airbyte/source-declarative-manifest:5.14.0@sha256:accdf6c1bbcabd45b40f836692e4f3b1a1e1f0b28267973802ee212cd9c2c16a
baseImage: docker.io/airbyte/source-declarative-manifest:6.28.0@sha256:6935048f02debe2cd6e33707b1f6885fc620914ef49ac00af75220ee7a596adf
connectorSubtype: api
connectorType: source
definitionId: d8313939-3782-41b0-be29-b3ca20d8dd3a
dockerImageTag: 0.9.0
dockerImageTag: 0.10.0
dockerRepository: airbyte/source-intercom
documentationUrl: https://docs.airbyte.com/integrations/sources/intercom
githubIssueLabel: source-intercom
Expand All @@ -28,7 +28,6 @@ data:
registryOverrides:
cloud:
enabled: true
dockerImageTag: 0.8.3
oss:
enabled: true
releaseStage: generally_available
Expand Down
Loading

0 comments on commit 2359e36

Please sign in to comment.