Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang

<!-- towncrier release notes start -->

## [1.9.2](https://github.com/opsmill/infrahub-sdk-python/tree/v1.9.2) - 2025-03-26

### Changed

- Remove hfid in upsert payload, to improve node upsert performances

## [1.9.1](https://github.com/opsmill/infrahub-sdk-python/tree/v1.9.1) - 2025-03-21

### Fixed
Expand Down
4 changes: 3 additions & 1 deletion infrahub_sdk/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1418,8 +1418,10 @@ async def create(
) -> None:
mutation_query = self._generate_mutation_query()

# Upserting means we may want to create, meaning payload contains all mandatory fields required for a creation,
# so hfid is just redondant information. Currently, upsert mutation has performance overhead if `hfid` is filled.
if allow_upsert:
input_data = self._generate_input_data(exclude_hfid=False, request_context=request_context)
input_data = self._generate_input_data(exclude_hfid=True, request_context=request_context)
mutation_name = f"{self._schema.kind}Upsert"
tracker = f"mutation-{str(self._schema.kind).lower()}-upsert"
else:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "infrahub-sdk"
version = "1.9.1"
version = "1.9.2"
description = "Python Client to interact with Infrahub"
authors = ["OpsMill <[email protected]>"]
readme = "README.md"
Expand Down