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 source GA connectors to per-stream states (2) (airbytehq#17410)
- Loading branch information
1 parent
c4a0086
commit 9457db9
Showing
17 changed files
with
433 additions
and
159 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
136 changes: 112 additions & 24 deletions
136
airbyte-integrations/connectors/source-freshdesk/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,35 +1,123 @@ | ||
{ | ||
"agents": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
[ | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "agents" | ||
} | ||
} | ||
}, | ||
"companies": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "companies" | ||
} | ||
} | ||
}, | ||
"contacts": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "contacts" | ||
} | ||
} | ||
}, | ||
"conversations": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "conversations" | ||
} | ||
} | ||
}, | ||
"groups": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "groups" | ||
} | ||
} | ||
}, | ||
"roles": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "roles" | ||
} | ||
} | ||
}, | ||
"satisfaction_ratings": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "satisfaction_ratings" | ||
} | ||
} | ||
}, | ||
"skills": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "skills" | ||
} | ||
} | ||
}, | ||
"surveys": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "surveys" | ||
} | ||
} | ||
}, | ||
"tickets": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "tickets" | ||
} | ||
} | ||
}, | ||
"time_entries": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2121-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "time_entries" | ||
} | ||
} | ||
} | ||
} | ||
] |
136 changes: 112 additions & 24 deletions
136
airbyte-integrations/connectors/source-freshdesk/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,35 +1,123 @@ | ||
{ | ||
"agents": { | ||
"updated_at": "2021-01-01T00:00:00Z" | ||
[ | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2021-01-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "agents" | ||
} | ||
} | ||
}, | ||
"companies": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "companies" | ||
} | ||
} | ||
}, | ||
"contacts": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "contacts" | ||
} | ||
} | ||
}, | ||
"conversations": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "conversations" | ||
} | ||
} | ||
}, | ||
"groups": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "groups" | ||
} | ||
} | ||
}, | ||
"roles": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "roles" | ||
} | ||
} | ||
}, | ||
"satisfaction_ratings": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "satisfaction_ratings" | ||
} | ||
} | ||
}, | ||
"skills": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "skills" | ||
} | ||
} | ||
}, | ||
"surveys": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "surveys" | ||
} | ||
} | ||
}, | ||
"tickets": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "tickets" | ||
} | ||
} | ||
}, | ||
"time_entries": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
{ | ||
"type": "STREAM", | ||
"stream": { | ||
"stream_state": { | ||
"updated_at": "2021-11-01T00:00:00Z" | ||
}, | ||
"stream_descriptor": { | ||
"name": "time_entries" | ||
} | ||
} | ||
} | ||
} | ||
] |
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
Oops, something went wrong.