Releases: opsmill/infrahub-sdk-python
Releases · opsmill/infrahub-sdk-python
Version 1.0.1
1.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)
- CTL: Fix support for relative imports for transforms and generators (#81)
- Fixes issues where InfrahubClient was not properly configured for a branch when running the
infrahubctl transform
,infrahubctl check
andinfrhubctl generator
commands. (#133) - Fixes an issue where a generator would not return any output if there are no members in the generator's target group.
Detailed Changelog
- stable to develop mergeback by @lykinsbd in #119
- bump version for next release by @lykinsbd in #120
- Rework ignore rules for mypy by @ogenstad in #121
- When using only the values of a dict use the
values()
method by @ogenstad in #122 - Move test from integration -> unit by @ogenstad in #123
- Add return type to generator run() by @ogenstad in #124
- Fix setting value of relationship of type pool by @gmazoyer in #118
- Add groups.group_add_subscriber by @LucasG0 in #125
- Fix relative module imports by @ogenstad in #128
- Change ctl check to not use InfrahubCheck.init() by @ogenstad in #126
- Fix relative imports for Python checks by @ogenstad in #131
- Make infrahubctl generator more verbose by @gmazoyer in #116
- Add order_weight by @ogenstad in #132
- sets branch on InfrahubClient when running
infrahubctl transform
infahubctl check
andinfrahubctl generator
by @wvandeun in #134
Full Changelog: v1.0.0...v1.0.1
Version 1.0.0
1.0.0 - 2024-10-31
Removed
- Breaking change: Removed all exports from infrahub_sdk/init.py except InfrahubClient, InfrahubClientSync and Config. If you previously imported other classes such as InfrahubNode from the root level these need to change to instead be an absolute path.
Added
- Add support for specific timeout per request on InfrahubClient and InfrahubNode function calls. (#25)
- Added
infrahubctl menu
command to load menu definitions into Infrahub
Fixed
- Fix SDK playback hash generation to read the correct filename (#64)
- CTL: Return friendly error on encoding violations when reading files. (#102)
- Changed the default connection timeout in the SDK to 60s.
- Fixes an issue where InfrahubClient was not properly URL encoding URL parameters.
Detailed Changelog
- Remove filters from the schemas in the fixtures directory by @dgarros in #53
- Update Protocols with CoreMenu & CoreMenuItem by @dgarros in #62
- stable mergeback by @ajtmccarty in #63
- Upload coverage reports to codecov by @ogenstad in #67
- Add config file for codecov by @ogenstad in #70
- Change the default connection timeout to 60s by @wvandeun in #69
- Set codecov target for PRs and changes by @ogenstad in #74
- Run python tests after changes to codecov.yml by @ogenstad in #75
- Fix broken SDK playback by @ogenstad in #72
- Add
infrahubctl menu load
command to load menu items from a file by @dgarros in #73 - Support code to be integrated into infrahub-server by @dgarros in #78
- Run coverage separately by @ogenstad in #79
- Activate rule for B018 for useless attribute access by @ogenstad in #87
- Fix Ruff B007 fix Loop control variable not used within loop body by @ogenstad in #85
- Fix Yoda condition (SIM300) by @ogenstad in #86
- Limit coverage run to --source=infrahub_sdk by @ogenstad in #83
- Cleanup ignored type annotations by @ogenstad in #84
- Merge back stable into develop with resolved conflicts by @ogenstad in #88
- Convert import paths to use relative Package name by @dgarros in #80
- Fix typehints and remove type ignores for ctl.importer & ctl.exporter by @ogenstad in #91
- Fix typing on ctl.utils by @ogenstad in #92
- Fix linting issues by @ogenstad in #95
- Fix typing for CLI commands by @ogenstad in #94
- Remove exports from
infrahub_sdk.__init__.py
by @ogenstad in #93 - Fix deprecation warning by @ogenstad in #97
stable
todevelop
mergeback by @lykinsbd in #101- Ignore specific RUF rules instead of ignoring everything by @ogenstad in #103
- Add specific timeouts per request per #25 by @PhillSimonds in #96
- Correct autofixable ruff violations by @ogenstad in #106
- Update protocols to match latest core schema by @dgarros in #107
- Upgrade ruff to 0.7.1 by @ogenstad in #108
- Add ability to initialize a Check with a client by @ogenstad in #115
- Return friendly errors on file encoding violations by @ogenstad in #114
- fix: urlencode query params by @fatih-acar in #60
- Prep release 1.0.0 by @wvandeun in #117
Full Changelog: v0.14.1...v1.0.0
Version 0.14.1
Version 0.14.0
0.14.0 - 2024-10-04
Removed
- Removed depreceted methods InfrahubClient.init and InfrahubClientSync.init (#33)
Changed
-
Query filters are not validated locally anymore, the validation will be done on the server side instead. (#9)
-
Method client.get() can now return
None
instead of raising an exception whenraise_when_missing
is set to Falseresponse = await clients.get( kind="CoreRepository", name__value="infrahub-demo", raise_when_missing=False ) ``` ([#11](https://github.com/opsmill/infrahub-sdk-python/issues/11))