diff --git a/CHANGELOG.md b/CHANGELOG.md index efff92be..91f2c534 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,28 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang +## [1.0.1](https://github.com/opsmill/infrahub-sdk-python/tree/v1.0.1) - 2024-11-12 + +### Removed + +- Removed previously deprecated InfrahubTransform.init() method + +### Deprecated + +- Marked InfrahubCheck.init() as deprecated and scheduled to be removed in Infrahub SDK 2.0.0 + +### Added + +- Adds `groups.group_add_subscriber` function to add a subscriber to a group. +- Adds order_weight property to AttributeSchema and RelationSchema classes. + +### Fixed + +- Fix generated GraphQL query when having a relationship to a pool node ([#27](https://github.com/opsmill/infrahub-sdk-python/issues/27)) +- CTL: Fix support for relative imports for transforms and generators ([#81](https://github.com/opsmill/infrahub-sdk-python/issues/81)) +- Fixes issues where InfrahubClient was not properly configured for a branch when running the `infrahubctl transform`, `infrahubctl check` and `infrhubctl generator` commands. ([#133](https://github.com/opsmill/infrahub-sdk-python/issues/133)) +- Fixes an issue where a generator would not return any output if there are no members in the generator's target group. + ## [1.0.0](https://github.com/opsmill/infrahub-sdk-python/tree/v1.0.0) - 2024-10-31 ### Removed diff --git a/changelog/+479a6128.removed.md b/changelog/+479a6128.removed.md deleted file mode 100644 index 5f932544..00000000 --- a/changelog/+479a6128.removed.md +++ /dev/null @@ -1 +0,0 @@ -Removed previously deprecated InfrahubTransform.init() method diff --git a/changelog/+89d1d0b7.deprecated.md b/changelog/+89d1d0b7.deprecated.md deleted file mode 100644 index 6660624a..00000000 --- a/changelog/+89d1d0b7.deprecated.md +++ /dev/null @@ -1 +0,0 @@ -Marked InfrahubCheck.init() as deprecated and scheduled to be removed in Infrahub SDK 2.0.0 diff --git a/changelog/27.fixed.md b/changelog/27.fixed.md deleted file mode 100644 index b62a31ab..00000000 --- a/changelog/27.fixed.md +++ /dev/null @@ -1 +0,0 @@ -Fix generated GraphQL query when having a relationship to a pool node \ No newline at end of file diff --git a/changelog/81.fixed.md b/changelog/81.fixed.md deleted file mode 100644 index ff47bc90..00000000 --- a/changelog/81.fixed.md +++ /dev/null @@ -1 +0,0 @@ -CTL: Fix support for relative imports for transforms and generators diff --git a/infrahub_sdk/ctl/check.py b/infrahub_sdk/ctl/check.py index a5164173..b7836f91 100644 --- a/infrahub_sdk/ctl/check.py +++ b/infrahub_sdk/ctl/check.py @@ -188,7 +188,7 @@ async def run_checks( log = logging.getLogger("infrahub") check_summary: list[bool] = [] - client = initialize_client() + client = initialize_client(branch=branch) for check_module in check_modules: if check_module.definition.targets: result = await run_targeted_check( diff --git a/infrahub_sdk/ctl/cli_commands.py b/infrahub_sdk/ctl/cli_commands.py index baf5231b..d9a51ea2 100644 --- a/infrahub_sdk/ctl/cli_commands.py +++ b/infrahub_sdk/ctl/cli_commands.py @@ -324,7 +324,7 @@ def transform( transform_config = repository_config.get_python_transform(name=transform_name) # Get client - client = initialize_client() + client = initialize_client(branch=branch) # Get python transform class instance diff --git a/infrahub_sdk/ctl/generator.py b/infrahub_sdk/ctl/generator.py index 414ab879..95ae11e7 100644 --- a/infrahub_sdk/ctl/generator.py +++ b/infrahub_sdk/ctl/generator.py @@ -46,7 +46,7 @@ async def run( if param_key: identifier = param_key[0] - client = initialize_client() + client = initialize_client(branch=branch) if variables_dict: data = execute_graphql_query( query=generator_config.query, diff --git a/pyproject.toml b/pyproject.toml index 7fa15bc6..846f4645 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "infrahub-sdk" -version = "1.0.1a0" +version = "1.0.1" description = "Python Client to interact with Infrahub" authors = ["OpsMill "] readme = "README.md"