Skip to content

Commit 8794721

Browse files
authored
Merge pull request #324 from opsmill/stable
Merge stable into develop
2 parents 7ce573b + eda8705 commit 8794721

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang
1111

1212
<!-- towncrier release notes start -->
1313

14+
## [1.9.2](https://github.com/opsmill/infrahub-sdk-python/tree/v1.9.2) - 2025-03-26
15+
16+
### Changed
17+
18+
- Remove hfid in upsert payload, to improve node upsert performances
19+
1420
## [1.9.1](https://github.com/opsmill/infrahub-sdk-python/tree/v1.9.1) - 2025-03-21
1521

1622
### Fixed

infrahub_sdk/node.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,8 +1418,10 @@ async def create(
14181418
) -> None:
14191419
mutation_query = self._generate_mutation_query()
14201420

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "infrahub-sdk"
3-
version = "1.9.1"
3+
version = "1.9.2"
44
description = "Python Client to interact with Infrahub"
55
authors = ["OpsMill <[email protected]>"]
66
readme = "README.md"

0 commit comments

Comments
 (0)