Skip to content

Commit

Permalink
Fix/background operation result full table (#58)
Browse files Browse the repository at this point in the history
* Remove unsupported replication key from BackgroundOperationResult

* Refactor for readability
  • Loading branch information
dmosorast authored Nov 5, 2018
1 parent 1d0e62c commit f63a805
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tap_salesforce/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,14 @@
'start_date': None
}

FORCED_FULL_TABLE = {
'BackgroundOperationResult' # Does not support ordering by CreatedDate
}

def get_replication_key(sobject_name, fields):
if sobject_name in FORCED_FULL_TABLE:
return None

fields_list = [f['name'] for f in fields]

if 'SystemModstamp' in fields_list:
Expand Down

0 comments on commit f63a805

Please sign in to comment.