Skip to content

Commit 79d9749

Browse files
authored
Merge pull request #309 from opsmill/stable
Merge stable into develop (1.8.0)
2 parents edb911e + cd493a2 commit 79d9749

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+5865
-1433
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
- name: "Check out repository code"
7777
uses: "actions/checkout@v4"
7878
- name: "Setup environment"
79-
run: "pip install ruff==0.8.6"
79+
run: "pip install ruff==0.11.0"
8080
- name: "Linting: ruff check"
8181
run: "ruff check ."
8282
- name: "Linting: ruff format"
@@ -212,6 +212,7 @@ jobs:
212212
- "3.10"
213213
- "3.11"
214214
- "3.12"
215+
- "3.13"
215216
if: |
216217
always() && !cancelled() &&
217218
!contains(needs.*.result, 'failure') &&

.github/workflows/sync-docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88
- stable
99
paths:
1010
- 'docs/docs/**'
11-
- 'docs/sidebars.ts'
11+
- 'docs/sidebars-infrahubctl.ts'
12+
- 'docs/sidebars-python-sdk.ts'
1213
pull_request:
1314
branches:
1415
- stable

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,21 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang
1111

1212
<!-- towncrier release notes start -->
1313

14+
## [1.8.0](https://github.com/opsmill/infrahub-sdk-python/tree/v1.8.0) - 2025-03-19
15+
16+
### Deprecated
17+
18+
- Timestamp: Direct access to `obj` and `add_delta` have been deprecated and will be removed in a future version. ([#255](https://github.com/opsmill/infrahub-sdk-python/issues/255))
19+
20+
### Added
21+
22+
- Added support for Enum in GraphQL query and mutation. ([#18](https://github.com/opsmill/infrahub-sdk-python/issues/18))
23+
24+
### Fixed
25+
26+
- Refactored Timestamp to use `whenever` instead of `pendulum` and extend Timestamp with `add()`, `subtract()`, and `to_datetime()`. ([#255](https://github.com/opsmill/infrahub-sdk-python/issues/255))
27+
- Fixed support for Python 3.13 as it's no longer required to have Rust installed on the system.
28+
1429
## [1.7.2](https://github.com/opsmill/infrahub-sdk-python/tree/v1.7.2) - 2025-03-07
1530

1631
### Added
@@ -26,6 +41,14 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang
2641
### Fixed
2742

2843
- `protocols` CTL command properly gets default branch setting from environment variable. ([#104](https://github.com/opsmill/infrahub-sdk-python/issues/104))
44+
- Fix typing for Python 3.9 ([#251](https://github.com/opsmill/infrahub-sdk-python/issues/251))
45+
- Refactor Timestamp to use `whenever` instead of `pendulum` and extend Timestamp with add(), subtract(), and to_datetime(). ([#255](https://github.com/opsmill/infrahub-sdk-python/issues/255))
46+
- Remove default value "main" for branch parameter from all Infrahub CTL commands. ([#264](https://github.com/opsmill/infrahub-sdk-python/issues/264))
47+
- Fixed support for Python 3.13, it's no longer required to have Rust installed on the system.
48+
49+
### Housekeeping
50+
51+
- Move the function `read_file` from the ctl module to the SDK.
2952
- Fixed typing for Python 3.9 and removed support for Python 3.13. ([#251](https://github.com/opsmill/infrahub-sdk-python/issues/251))
3053
- Removed default value "main" for branch parameter from all Infrahub CTL commands. ([#264](https://github.com/opsmill/infrahub-sdk-python/issues/264))
3154

docs/docs/python-sdk/guides/query_data.mdx

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,7 @@ The `get` and `filters` query methods allow you to use filters. Filters specify
1919

2020
### Discovering available filters
2121

22-
The easiest way to discover the available filters for a kind of node is by querying the schema.
23-
24-
<Tabs groupId="async-sync">
25-
<TabItem value="Async" default>
26-
27-
```python
28-
tag_schema = await client.schema.get("BuiltinTag")
29-
print(tag_schema.filters)
30-
```
31-
32-
</TabItem>
33-
<TabItem value="Sync">
34-
35-
```python
36-
tag_schema = client.schema.get("BuiltinTag")
37-
print(tag_schema.filters)
38-
```
39-
40-
</TabItem>
41-
</Tabs>
22+
The easiest way to discover the available filters for a kind of node is by opening the GraphQLi Explorer in the GraphQL sandbox. Under each GraphQL query you will find the available filters.
4223

4324
### Attribute filters
4425

docs/docs/python-sdk/introduction.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,18 @@ The Infrahub Python SDK greatly simplifies how you can interact with Infrahub pr
1010

1111
## Guides
1212

13-
- [Installing infrahub-sdk](./guides/installation)
14-
- [Creating a client](./guides/client)
15-
- [Querying data in Infrahub](./guides/query_data)
16-
- [Managing nodes](./guides/create_update_delete)
17-
- [Managing branches](./guides/branches)
18-
- [Using the client store](./guides/store)
19-
- [Using the client tracking mode](./guides/tracking)
13+
- [Installing infrahub-sdk](./guides/installation.mdx)
14+
- [Creating a client](./guides/client.mdx)
15+
- [Querying data in Infrahub](./guides/query_data.mdx)
16+
- [Managing nodes](./guides/create_update_delete.mdx)
17+
- [Managing branches](./guides/branches.mdx)
18+
- [Using the client store](./guides/store.mdx)
19+
- [Using the client tracking mode](./guides/tracking.mdx)
2020

2121
## Topics
2222

23-
- [Understanding tracking in the Python SDK](./topics/tracking)
23+
- [Understanding tracking in the Python SDK](./topics/tracking.mdx)
2424

2525
## Reference
2626

27-
- [Client configuration](./reference/config)
27+
- [Client configuration](./reference/config.mdx)

0 commit comments

Comments
 (0)