Releases: opsmill/infrahub-sdk-python
Releases · opsmill/infrahub-sdk-python
Version 1.15.1
Version 1.15.0
Added
- Add
create_diffmethod to create a diff summary between two timestamps
Updateget_diff_summaryto 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_typemethod to allow converting an object to another type. - Add
graph_versionandstatusproperties toBranch - Add
infrahubctl graphqlcommands 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=Falseacross 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
Syncword in the protocol schema name so that the correct kind can be gotten from the cache (#380) - Fix
infrahubctl infocommand 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_transformandexecute_graphql_queryfunctions 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
hfidfields and other string values in GraphQL mutations by implementing proper JSON-style string escaping
- Fixed issue with improperly escaped special characters in
Housekeeping
Version 1.15.0b1
What's Changed
- Use new mutation names for getting pool resources by @gmazoyer in #465
- Add protocols for Infrahub 1.4 by @ogenstad in #488
- Support infrahub.yml or infrahub.yaml configuration files by @petercrocker in #492
- Upgrade
infrahub-testcontainersby @gmazoyer in #516 - IHS-152 Allow unsetting one-to-one relationship by @gmazoyer in #515
- Bump docs dependencies by @minitriga in #520
- IHS-154 Deprecate using
raise_for_error = Falseby @gmazoyer in #508 - fix(docs): broken links to .infrahub.yml by @fatih-acar in #522
- Do not fail
infocommand when user not set by @gmazoyer in #524 - Fix branch creation with sync client by @gmazoyer in #527
- Fix filters
includeparameter by @LucasG0 in #513 - Respect default branch for client.query_gql_query() by @ogenstad in #518
- Add
create_diffto the clients to manually create a diff between two times. by @minitriga in #531 - Fix issue with
renderctl command not using branch environment variables by @minitriga in #536 - Fix return types by @ogenstad in #541
- Remove unnecessary assignments before
returnstatement by @ogenstad in #542 - Fix typing for substract params by @ogenstad in #540
- Clean up typing for proxy config by @ogenstad in #539
- add livestream to docs by @petercrocker in #544
- fix improperly escaped special characters in
HFIDby @BeArchiTek in #547 - IFC-1811: Replace toml package with tomllib and tomli optionally by @solababs in #551
- Add convert_object_type method by @LucasG0 in #554
- Add support for clearing optional attributes by @minitriga in #548
- IHS-147: Fix schema load failure exception by @solababs in #555
- Add to object conversion input by @LucasG0 in #558
- Fix JsonDecodeError to include server response content in error message by @Copilot in #553
- Object file range expansion by @minitriga in #561
- IHS-163 Add required change for IFC-1820 (display_label) by @gmazoyer in #556
- Increase default timeouts for transform/checks from 10 to 60. by @FragmentedPacket in #563
- Range Expansion Imrovements by @minitriga in #571
- IHS-170: Disable rich console print markup causing regex reformatting by @solababs in #574
- update docusaurus by @petercrocker in #567
- fixed broken link by @vsurresh in #474
- Add command to generate Pydantic model based on a GraphQL query by @dgarros in #546
- Add flags to
CoreGeneratorDefinitionto control when each generator should be executed by @dgarros in #578
New Contributors
Full Changelog: v1.14.0...v1.15.0b1
Version 1.15.0b0
What's Changed
Added
- Add
create_diffto the clients to manually create a diff between two times. by @minitriga in #531 - Add
convert_object_typemethod 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_valueto object conversion input for destination attributes by @LucasG0 in #558 - Add Object file range expansion by @minitriga in #561
- Add support for
display_labelproperty on schema nodes by @gmazoyer in #556
Fixed
- Deprecate using
raise_for_error = Falseon 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
infocommand when user not set by @gmazoyer in #524 - Fix branch creation with sync client by @gmazoyer in #527
- Fix filters
includeparameter by @LucasG0 in #513 - Respect default branch for client.query_gql_query() by @ogenstad in #518
- Fix issue with
renderctl command not using branch environment variables by @minitriga in #536 - Fix return types by @ogenstad in #541
- Remove unnecessary assignments before
returnstatement 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
HFIDby @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
- add livestream to docs by @petercrocker in #544
- fix(docs): broken links to .infrahub.yml by @fatih-acar in #522
- Upgrade
infrahub-testcontainersby @gmazoyer in #516 - Bump docs dependencies by @minitriga in #520
- Add protocols for Infrahub 1.4 by @ogenstad in #488
- IFC-1811: Replace toml package with tomllib and tomli optionally by @solababs in #551
- Prepare release v1.15.0b0 by @wvandeun in #568
Full Changelog: v1.14.0...v1.15.0b0
Version 1.14.0
Added
- Added
infrahubctl repository initcommand 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__valuewith relationships of cardinality one (#6882) - Create a new batch while fetching relationships instead of using the reusing the same one.
- Update internal calls to
countto 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
Fixed
- Respect ordering when loading files from a directory
Version 1.13.4
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
Fixed
- Update InfrahubNode creation to include __typename, display_label, and kind from a RelatedNode (#455)
Version 1.13.2
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
Fixed
- Fix the import path of the Attribute class #448