Skip to content

Commit 8480eb3

Browse files
Revert "Remove hfid in upsert payload (#312)"
This reverts commit 42dccb0.
1 parent 5bee453 commit 8480eb3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

infrahub_sdk/node.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,10 +1445,8 @@ async def create(
14451445
) -> None:
14461446
mutation_query = self._generate_mutation_query()
14471447

1448-
# Upserting means we may want to create, meaning payload contains all mandatory fields required for a creation,
1449-
# so hfid is just redondant information. Currently, upsert mutation has performance overhead if `hfid` is filled.
14501448
if allow_upsert:
1451-
input_data = self._generate_input_data(exclude_hfid=True, request_context=request_context)
1449+
input_data = self._generate_input_data(exclude_hfid=False, request_context=request_context)
14521450
mutation_name = f"{self._schema.kind}Upsert"
14531451
tracker = f"mutation-{str(self._schema.kind).lower()}-upsert"
14541452
else:

0 commit comments

Comments
 (0)