From 4871d58d686449255cdec5ce094c2eaea73996a4 Mon Sep 17 00:00:00 2001 From: Niels <77604434+nielsmai@users.noreply.github.com> Date: Thu, 1 Jun 2023 13:21:56 -0400 Subject: [PATCH 1/3] Removed the post_process function Removed the post_process function --- tap_hubspot/streams.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/tap_hubspot/streams.py b/tap_hubspot/streams.py index 7b4d03e..96db20c 100644 --- a/tap_hubspot/streams.py +++ b/tap_hubspot/streams.py @@ -98,11 +98,6 @@ def get_child_context(self, record: dict, context: Optional[dict]) -> dict: """Return a context dictionary for child streams.""" return {"archived": record["archived"], "company_id": record["id"]} - def post_process(self, row: dict, context: Optional[dict]) -> dict: - """As needed, append or transform raw data to match expected structure. - Returns row""" - return row - class DealsStream(HubspotStream): """Define custom stream.""" @@ -133,11 +128,6 @@ def get_child_context(self, record: dict, context: Optional[dict]) -> dict: "deal_id": record["id"], } - def post_process(self, row: dict, context: Optional[dict]) -> dict: - """As needed, append or transform raw data to match expected structure. - Returns row""" - return row - class ContactsStream(HubspotStream): """Define custom stream.""" @@ -165,11 +155,6 @@ def get_child_context(self, record: dict, context: Optional[dict]) -> dict: """Return a context dictionary for child streams.""" return {"archived": record["archived"], "contact_id": record["id"]} - def post_process(self, row: dict, context: Optional[dict]) -> dict: - """As needed, append or transform raw data to match expected structure. - Returns row""" - return row - class PropertiesStream(HubspotStream): """Define custom stream.""" From f2e1eddfe428e35df5cc8251b5d41e4bfc6e5afe Mon Sep 17 00:00:00 2001 From: Niels <77604434+nielsmai@users.noreply.github.com> Date: Thu, 1 Jun 2023 13:23:02 -0400 Subject: [PATCH 2/3] second commit for tiguidou to work --- tap_hubspot/streams.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tap_hubspot/streams.py b/tap_hubspot/streams.py index 96db20c..03bdcbc 100644 --- a/tap_hubspot/streams.py +++ b/tap_hubspot/streams.py @@ -156,6 +156,7 @@ def get_child_context(self, record: dict, context: Optional[dict]) -> dict: return {"archived": record["archived"], "contact_id": record["id"]} + class PropertiesStream(HubspotStream): """Define custom stream.""" From 851e1ec2f7ca46fcf765c840f0d9e56fc0c3945c Mon Sep 17 00:00:00 2001 From: Niels <77604434+nielsmai@users.noreply.github.com> Date: Thu, 1 Jun 2023 13:23:10 -0400 Subject: [PATCH 3/3] Update streams.py --- tap_hubspot/streams.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tap_hubspot/streams.py b/tap_hubspot/streams.py index 03bdcbc..96db20c 100644 --- a/tap_hubspot/streams.py +++ b/tap_hubspot/streams.py @@ -156,7 +156,6 @@ def get_child_context(self, record: dict, context: Optional[dict]) -> dict: return {"archived": record["archived"], "contact_id": record["id"]} - class PropertiesStream(HubspotStream): """Define custom stream."""