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
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,29 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang

<!-- towncrier release notes start -->

## [0.14.0](https://github.com/opsmill/infrahub-sdk-python/tree/v0.14.0) - 2024-10-04

### Removed

- Removed depreceted methods InfrahubClient.init and InfrahubClientSync.init ([#33](https://github.com/opsmill/infrahub-sdk-python/issues/33))

### Changed

- Query filters are not validated locally anymore, the validation will be done on the server side instead. ([#9](https://github.com/opsmill/infrahub-sdk-python/issues/9))
- Method client.get() can now return `None` instead of raising an exception when `raise_when_missing` is set to False

```python
response = await clients.get(
kind="CoreRepository", name__value="infrahub-demo", raise_when_missing=False
)
``` ([#11](https://github.com/opsmill/infrahub-sdk-python/issues/11))

### Fixed

- prefix and address attribute filters are now available in the Python SDK ([#10](https://github.com/opsmill/infrahub-sdk-python/issues/10))
- Queries using isnull as a filter are now supported by the Python SDK ([#30](https://github.com/opsmill/infrahub-sdk-python/issues/30))
- `execute_graphql` method for InfrahubClient(Sync) now properly considers the `default_branch` setting ([#46](https://github.com/opsmill/infrahub-sdk-python/issues/46))

## [0.13.1.dev0](https://github.com/opsmill/infrahub-sdk-python/tree/v0.13.1.dev0) - 2024-09-24

### Added
Expand Down
1 change: 0 additions & 1 deletion changelog/10.fixed.md

This file was deleted.

7 changes: 0 additions & 7 deletions changelog/11.changed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/30.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/46.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9.changed.md

This file was deleted.

27 changes: 0 additions & 27 deletions infrahub_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import asyncio
import copy
import logging
import warnings
from functools import wraps
from time import sleep
from typing import (
Expand Down Expand Up @@ -305,19 +304,6 @@ def _initialize(self) -> None:
self._request_method: AsyncRequester = self.config.requester or self._default_request_method
self.group_context = InfrahubGroupContext(self)

@classmethod
async def init(
cls,
address: str = "",
config: Optional[Union[Config, dict[str, Any]]] = None,
) -> InfrahubClient:
warnings.warn(
"InfrahubClient.init has been deprecated and will be removed in Infrahub SDK 0.14.0 or the next major version",
DeprecationWarning,
stacklevel=1,
)
return cls(address=address, config=config)

@overload
async def create(
self,
Expand Down Expand Up @@ -1434,19 +1420,6 @@ def _initialize(self) -> None:
self._request_method: SyncRequester = self.config.sync_requester or self._default_request_method
self.group_context = InfrahubGroupContextSync(self)

@classmethod
def init(
cls,
address: str = "",
config: Optional[Union[Config, dict[str, Any]]] = None,
) -> InfrahubClientSync:
warnings.warn(
"InfrahubClientSync.init has been deprecated and will be removed in Infrahub SDK 0.14.0 or the next major version",
DeprecationWarning,
stacklevel=1,
)
return cls(address=address, config=config)

@overload
def create(
self,
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 = "0.14.0-dev0"
version = "0.14.0"
description = "Python Client to interact with Infrahub"
authors = ["OpsMill <[email protected]>"]
readme = "README.md"
Expand Down