-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding bookmarks test * added the all fields test which includes suggested changes * made changes to tests based on child stream * modified tests based on child stream * made changes on PR comments * - fixed existing integration test * - fixed integration tests * - added interrupted sync test * - fixed interrutped sync test * refactor init and client.py * - added assertion exception for interrupted sync ticket * - added exception for full_table assertions * refactor client.py with proper HTTP error contexts * fix type hinting * - fixed review comments * Refactor discovery process * delete schema.py * modify replication key for workflows * add pylint step to circleci job * remove unwanted comments, modify type hinting * add extra_requires in setup.py * key_properties to list * uncomment discovery test for automatic fields * remove bugfix comment and code for automatic field selection * revert to remove conflicts for PR-28 * update workflow endpoint in readme * add key_properties to catalog * check integrations are successful * check integrations are successful * sync refactoring.. * Adding properties field to customers schema (#32) * Adding properties field to customers schema * Adding properties field to transformation list * bookmark methods * sync refactoring * add ratings stream * integration tests for ratings stream * add teams stream * set default bookmark value * point to sync to new file * rename ratings to happiness_ratings, update readme * rename ratings to happiness_ratings * add unittests * add unittests * sync for child streams * fix parent name in child records * fix bug for child streams * remove foreign keys as automatically selected * point to child schema * point to child schema * fix foreign key assertions * parse dates for comparing * type hinting * remove teams from expected streams * remove tests running for teams stream * include tests for teams * add stream team_users * add stream team_users * all_fields revert for teams * chnage primary keys for ratings stream * change stream names, remove nulls for PKs, update README.md * update integration tests * remove rating field from ratings stream * add comment for start end params affect * merge with master * change log and version bump --------- Co-authored-by: Manoj Kumar Anand <manand@talend.com> Co-authored-by: RushiT0122 <rtodkar@stitchdata-talend.com> Co-authored-by: Rushikesh Todkar <98420315+RushiT0122@users.noreply.github.com> Co-authored-by: Arthur Borcato <66625056+arthur-borcato@users.noreply.github.com>
- Loading branch information
1 parent
70debf6
commit 93e2c8f
Showing
23 changed files
with
301 additions
and
57 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
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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"thread_id": { | ||
"type": ["null", "integer"] | ||
}, | ||
"conversation_id": { | ||
"type": ["integer"] | ||
}, | ||
"thread_created_at": { | ||
"type": ["null", "string"], | ||
"format": "date-time" | ||
}, | ||
"rating_id": { | ||
"type": ["null", "integer"] | ||
}, | ||
"rating_customer_id": { | ||
"type": ["integer"] | ||
}, | ||
"rating_customer_name": { | ||
"type": ["null", "string"] | ||
}, | ||
"rating_comments": { | ||
"type": ["null", "string"] | ||
}, | ||
"rating_created_at": { | ||
"type": ["string"], | ||
"format": "date-time" | ||
}, | ||
"rating_user_id": { | ||
"type": ["null", "integer"] | ||
}, | ||
"rating_user_name": { | ||
"type": ["null", "string"] | ||
}, | ||
"type": { | ||
"type": ["null", "string"] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"team_id": { | ||
"type": ["integer"] | ||
}, | ||
"user_id": { | ||
"type": ["integer"] | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"type": "object", | ||
"additionalProperties": false, | ||
"properties": { | ||
"id": { | ||
"type": ["integer"] | ||
}, | ||
"name": { | ||
"type": ["null", "string"] | ||
}, | ||
"timezone": { | ||
"type": ["null", "string"] | ||
}, | ||
"mention": { | ||
"type": ["null", "string"] | ||
}, | ||
"photo_url": { | ||
"type": ["null", "string"] | ||
}, | ||
"created_at": { | ||
"type": ["null", "string"], | ||
"format": "date-time" | ||
}, | ||
"updated_at": { | ||
"type": ["null", "string"], | ||
"format": "date-time" | ||
}, | ||
"initials": { | ||
"type": ["null", "string"] | ||
} | ||
} | ||
} |
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,19 +1,26 @@ | ||
from .conversation_threads import ConversationThreads | ||
from .conversations import Conversations | ||
from .conversation_threads import ConversationThreads | ||
from .customers import Customers | ||
from .happiness_ratings_report import HappinessRatingsReport | ||
from .mailboxes import MailBoxes | ||
from .mailbox_fields import MailBoxFields | ||
from .mailbox_folders import MailBoxFolders | ||
from .mailboxes import MailBoxes | ||
from .teams import Teams | ||
from .team_members import TeamMembers | ||
from .users import Users | ||
from .workflows import Workflows | ||
|
||
|
||
STREAMS = { | ||
Conversations.tap_stream_id: Conversations, | ||
ConversationThreads.tap_stream_id: ConversationThreads, | ||
Customers.tap_stream_id: Customers, | ||
HappinessRatingsReport.tap_stream_id: HappinessRatingsReport, | ||
MailBoxes.tap_stream_id: MailBoxes, | ||
MailBoxFields.tap_stream_id: MailBoxFields, | ||
MailBoxFolders.tap_stream_id: MailBoxFolders, | ||
Teams.tap_stream_id: Teams, | ||
TeamMembers.tap_stream_id: TeamMembers, | ||
Users.tap_stream_id: Users, | ||
Workflows.tap_stream_id: Workflows, | ||
Workflows.tap_stream_id: Workflows | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from .abstract import FullStream | ||
|
||
|
||
class HappinessRatingsReport(FullStream): | ||
"""Class for `happiness_ratings_report` stream""" | ||
stream = tap_stream_id = "happiness_ratings_report" | ||
path = "/reports/happiness/ratings" | ||
key_properties = ["rating_customer_id", "conversation_id", "rating_created_at"] | ||
data_key = "results" | ||
is_child = False |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from .abstract import FullStream | ||
|
||
|
||
class TeamMembers(FullStream): | ||
"""Class for `team_members` stream""" | ||
stream = tap_stream_id = "team_members" | ||
path = "/teams/{}/members" | ||
key_properties = ["team_id", "user_id"] | ||
data_key = "users" | ||
is_child = True | ||
parent = "team" |
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from .abstract import IncrementalStream | ||
|
||
|
||
class Teams(IncrementalStream): | ||
"""Class for `conversations` stream""" | ||
stream = tap_stream_id = "teams" | ||
path = "/teams" | ||
key_properties = ["id"] | ||
replication_key = "updated_at" | ||
replication_key_type = "datetime" | ||
valid_replication_keys = ("updated_at",) | ||
data_key = "teams" | ||
child_streams = ["team_members"] | ||
is_child = False |
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.