Skip to content

Commit

Permalink
Add gid to the list of potential main doc ids (used by Asana)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-village committed Sep 6, 2024
1 parent cce751b commit 3d8fd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target_elasticsearch/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ def build_doc_id(self, stream_name: str, r: Dict[str, Union[str, Dict[str, str],

# 2. Best effort to avoid duplicates:
# In descending priority, try to match a field which looks like a primary key
id_fields = ["id", "ID", "Id", "accountId",
id_fields = ["id", "ID", "Id", "gid", "accountId",
"sha", "hash", "node_id", "idx", "key", "ts", "name"]
for id_field in id_fields:
if id_field in r:
Expand Down

0 comments on commit 3d8fd4b

Please sign in to comment.