Skip to content

Commit db62ead

Browse files
HGI-8684: Add FULL_SYNC_STREAMS for TaxRate and TaxCode, adjust replication key logic (#179)
* HGI-8684: Add FULL_SYNC_STREAMS for TaxRate and TaxCode; adjust replication key logic in do_discover * HGI-8684: Simplify replication key logic
1 parent 5f10573 commit db62ead

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tap_quickbooks/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ def create_property_schema(field, mdata):
8989

9090
return (property_schema, mdata)
9191

92+
FULL_SYNC_STREAMS = [
93+
"TaxRate",
94+
"TaxCode",
95+
]
9296

9397
# pylint: disable=too-many-branches,too-many-statements
9498
def do_discover(qb):
@@ -107,10 +111,9 @@ def do_discover(qb):
107111
fields = qb.describe(sobject_name)
108112

109113
replication_key = REPLICATION_KEY
110-
if sobject_name.endswith('Report'):
114+
if sobject_name.endswith('Report') or sobject_name in FULL_SYNC_STREAMS:
111115
replication_key = None
112116

113-
114117
properties = {}
115118
mdata = metadata.new()
116119

0 commit comments

Comments
 (0)