Skip to content

Releases: opsmill/infrahub-sdk-python

Version 1.15.1

13 Nov 11:35
4fd8376

Choose a tag to compare

Fixed

  • Fixed nested object template range expansion. (#624)

Version 1.15.0

10 Nov 14:47
88c7907

Choose a tag to compare

Added

  • Add create_diff method to create a diff summary between two timestamps
    Update get_diff_summary to accept optional time range parameters (#529)
  • Add the ability to perform range expansions in object files. This feature allows users to define patterns in string fields that will be expanded into multiple objects, facilitating bulk object creation and management. The implementation includes validation to ensure that all expanded lists have the same length, preventing inconsistencies. Documentation has been updated to explain how to use this feature, including examples of valid and invalid configurations. (#560)
  • Add convert_object_type method to allow converting an object to another type.
  • Add graph_version and status properties to Branch
  • Add infrahubctl graphql commands to export schema and generate Pydantic types from GraphQL queries
  • Added deprecation warnings when loading or checking schemas

Changed

  • Deprecate the use of raise_for_error=False across several methods, using a try/except pattern is preferred. (#493)

Fixed

  • Respect default branch for client.query_gql_query() and client.set_context_properties() (#236)
  • Fix branch creation with the sync client while setting wait_until_completion=False (#374)
  • Replaced the Sync word in the protocol schema name so that the correct kind can be gotten from the cache (#380)
  • Fix infrahubctl info command when run as an anonymous user (#398)
  • JsonDecodeError now includes server response content in error message when JSON decoding fails, providing better debugging information for non-JSON server responses. (#473)
  • Allow unsetting optional relationship of cardinality one by setting its value to None (#479)
  • Bump docs dependencies (#519)
  • Fix branch handling in _run_transform and execute_graphql_query functions in Infrahubctl to use environment variables for branch management. (#535)
  • Allow the ability to clear optional attributes by setting them to None if they have been mutated by the user. (#549)
  • Disable rich console print markup causing regex reformatting (#565)
    • Fixed issue with improperly escaped special characters in hfid fields and other string values in GraphQL mutations by implementing proper JSON-style string escaping

Housekeeping

  • Handle error gracefully when loading schema instead of failing with an exception (#464)
  • Replace toml package with tomllib and tomli optionally for when Python version is less than 3.11 (#528)

Version 1.15.0b1

20 Oct 22:07
2dcc1db

Choose a tag to compare

Version 1.15.0b1 Pre-release
Pre-release

What's Changed

New Contributors

Full Changelog: v1.14.0...v1.15.0b1

Version 1.15.0b0

07 Oct 13:15
cea3266

Choose a tag to compare

Version 1.15.0b0 Pre-release
Pre-release

What's Changed

Added

  • Add create_diff to the clients to manually create a diff between two times. by @minitriga in #531
  • Add convert_object_type method by @LucasG0 in #554
  • Add support for clearing optional attributes by @minitriga in #548
  • Add support for clearing cardinality one relationships by @gmazoyer in #515
  • Add default_value to object conversion input for destination attributes by @LucasG0 in #558
  • Add Object file range expansion by @minitriga in #561
  • Add support for display_label property on schema nodes by @gmazoyer in #556

Fixed

  • Deprecate using raise_for_error = False on SDK client methods by @gmazoyer in #508
  • Use new mutation names for allocting IPAddress and IPPrefix resources from a pool by @gmazoyer in #465
  • Support .infrahub.yml and .infrahub.yaml as repository configuration files by @petercrocker in #492
  • Do not fail info command when user not set by @gmazoyer in #524
  • Fix branch creation with sync client by @gmazoyer in #527
  • Fix filters include parameter by @LucasG0 in #513
  • Respect default branch for client.query_gql_query() by @ogenstad in #518
  • Fix issue with render ctl command not using branch environment variables by @minitriga in #536
  • Fix return types by @ogenstad in #541
  • Remove unnecessary assignments before return statement by @ogenstad in #542
  • Fix typing for substract params by @ogenstad in #540
  • Clean up typing for proxy config by @ogenstad in #539
  • fix improperly escaped special characters in HFID by @BeArchiTek in #547
  • Fix schema load failure exception by @solababs in #555
  • Fix JsonDecodeError to include server response content in error message by @Copilot in #553

Housekeeping

Full Changelog: v1.14.0...v1.15.0b0

Version 1.14.0

27 Aug 06:43
4f7725b

Choose a tag to compare

Added

  • Added infrahubctl repository init command to allow the initialization of an Infrahub repository using infrahub-template. (#466)
  • add support for NumberPool attributes in generated protocols

Fixed

  • Fix value lookup using a flat notation like foo__bar__value with relationships of cardinality one (#6882)
  • Create a new batch while fetching relationships instead of using the reusing the same one.
  • Update internal calls to count to include the branch parameter so that the query is performed on the correct branch
  • Update offset in process_page() which was causing a race condition in rare case. (#514)

Version 1.13.5

23 Jul 04:58
64a7957

Choose a tag to compare

Fixed

  • Respect ordering when loading files from a directory

Version 1.13.4

22 Jul 20:26
ef7fc07

Choose a tag to compare

Fixed

  • Fix processing of relationship during nodes retrieval using the Sync Client, when prefecthing related_nodes. (#461)
  • Fix schema loading to ignore non-YAML files in folders. (#462)
  • Fix ignored node variable in filters(). (#469)
  • Fix use of parallel with filters for Infrahub Client Sync.
  • Avoid sending empty list to infrahub if no valids schemas are found.

Version 1.13.3

30 Jun 18:24
560238a

Choose a tag to compare

Fixed

  • Update InfrahubNode creation to include __typename, display_label, and kind from a RelatedNode (#455)

Version 1.13.2

27 Jun 12:26
b904ad5

Choose a tag to compare

Fixed

  • Re-enable specifying a cardinality-one relationship using a RelatedNode when creating an InfrahubNode (#452)
  • Fixes the import path of the Attribute class

Version 1.13.1

20 Jun 08:25
9a5b3ae

Choose a tag to compare

Fixed

  • Fix the import path of the Attribute class #448