Skip to content

Commit 8004be4

Browse files
authored
Merge pull request #613 from opsmill/infrahub-develop
Merge infrahub-develop into stable
2 parents 7c63009 + bb1acc1 commit 8004be4

Some content is hidden

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

72 files changed

+22142
-655
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,15 +138,15 @@ jobs:
138138
with:
139139
submodules: true
140140
- name: Install NodeJS
141-
uses: actions/setup-node@v4
141+
uses: actions/setup-node@v5
142142
with:
143143
node-version: 20
144144
cache: 'npm'
145145
cache-dependency-path: docs/package-lock.json
146146
- name: "Install dependencies"
147147
run: npm install
148148
- name: "Setup Python environment"
149-
run: "pip install invoke toml"
149+
run: "pip install invoke"
150150
- name: "Build docs website"
151151
run: "invoke docs"
152152

@@ -176,7 +176,7 @@ jobs:
176176
- name: "Install dependencies"
177177
run: "poetry install --no-interaction --no-ansi --extras ctl"
178178
- name: "Setup environment"
179-
run: "pip install invoke toml"
179+
run: "poetry run pip install invoke"
180180
- name: "Validate generated documentation"
181181
run: "poetry run invoke docs-validate"
182182

@@ -236,7 +236,11 @@ jobs:
236236
run: |
237237
pipx install poetry==${{ needs.prepare-environment.outputs.POETRY_VERSION }} --python python${{ matrix.python-version }}
238238
poetry config virtualenvs.create true --local
239-
pip install invoke toml codecov
239+
pip install invoke codecov
240+
- name: "Install tomli for Python < 3.11"
241+
if: matrix.python-version == '3.9' || matrix.python-version == '3.10'
242+
run: |
243+
pip install tomli
240244
- name: "Install Package"
241245
run: "poetry install --all-extras"
242246
- name: "Mypy Tests"
@@ -289,7 +293,7 @@ jobs:
289293
run: |
290294
pipx install poetry==${{ needs.prepare-environment.outputs.POETRY_VERSION }}
291295
poetry config virtualenvs.create true --local
292-
pip install invoke toml codecov
296+
pip install invoke codecov
293297
- name: "Install Package"
294298
run: "poetry install --all-extras"
295299
- name: "Integration Tests"
@@ -362,7 +366,7 @@ jobs:
362366
# run: |
363367
# pipx install poetry==${{ needs.prepare-environment.outputs.POETRY_VERSION }}
364368
# poetry config virtualenvs.create true --local
365-
# pip install invoke toml codecov
369+
# pip install invoke codecov
366370

367371
# - name: "Install Package"
368372
# run: "poetry install --all-extras"

.github/workflows/repository-dispatch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
uses: actions/checkout@v5
4646

4747
- name: Repository Dispatch
48-
uses: peter-evans/repository-dispatch@v3
48+
uses: peter-evans/repository-dispatch@v4
4949
with:
5050
token: ${{ secrets.GH_UPDATE_PACKAGE_OTTO }}
5151
# if matrix.repo contains a slash, use it literally; otherwise look up the secret named by matrix.repo

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
repos:
3+
- repo: https://github.com/pre-commit/pre-commit-hooks
4+
rev: v4.3.0
5+
hooks:
6+
- id: trailing-whitespace
7+
- id: check-ast
8+
- id: check-case-conflict
9+
- id: check-merge-conflict
10+
- id: check-toml
11+
- id: check-yaml
12+
- id: end-of-file-fixer
13+
14+
- repo: https://github.com/astral-sh/ruff-pre-commit
15+
# Ruff version.
16+
rev: v0.11.9
17+
hooks:
18+
# Run the linter.
19+
- id: ruff
20+
args: [--fix]
21+
# Run the formatter.
22+
- id: ruff-format

.vale/styles/Infrahub/branded-terms-case-swap.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ swap:
1313
(?:[Gg]itlab): GitLab
1414
(?:gitpod): GitPod
1515
(?:grafana): Grafana
16-
(?:[^/][Gg]raphql): GraphQL
1716
(?:[Ii]nflux[Dd]b): InfluxDB
1817
infrahub(?:\s|$): Infrahub
1918
(?:jinja2): Jinja2
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `graph_version` and `status` properties to `Branch`
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `convert_object_type` method to allow converting an object to another type.

changelog/+f6791a3d.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Added deprecation warnings when loading or checking schemas

changelog/+gql-command.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `infrahubctl graphql` commands to export schema and generate Pydantic types from GraphQL queries

changelog/380.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Replaced the `Sync` word in the protocol schema name so that the correct kind can be gotten from the cache

changelog/464.housekeeping.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Handle error gracefully when loading schema instead of failing with an exception

0 commit comments

Comments
 (0)