Skip to content

Commit ccbe1f9

Browse files
committed
HGI-8684: Add FULL_SYNC_STREAMS for TaxRate and TaxCode; adjust replication key logic in do_discover
1 parent 5f10573 commit ccbe1f9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tap_quickbooks/__init__.py

Lines changed: 7 additions & 1 deletion
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):
@@ -109,7 +113,9 @@ def do_discover(qb):
109113
replication_key = REPLICATION_KEY
110114
if sobject_name.endswith('Report'):
111115
replication_key = None
112-
116+
117+
if sobject_name in FULL_SYNC_STREAMS:
118+
replication_key = None
113119

114120
properties = {}
115121
mdata = metadata.new()

0 commit comments

Comments
 (0)