Skip to content

Commit 989a354

Browse files
authored
Merge pull request #6606 from opsmill/stable-to-release-1.3
Stable to release 1.3
2 parents 8888028 + 475357d commit 989a354

File tree

11 files changed

+71
-17
lines changed

11 files changed

+71
-17
lines changed

CHANGELOG.md

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

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

14+
## [Infrahub - v1.2.12](https://github.com/opsmill/infrahub/tree/infrahub-v1.2.12) - 2025-06-03
15+
16+
### Fixed
17+
18+
- Remove uniqueness constraint on generic templates to support upsert mutations ([#6478](https://github.com/opsmill/infrahub/issues/6478))
19+
- Add a migration to clean up duplicated data from improper merges of branches containing node schemas with an updated kind or inheritance ([#6502](https://github.com/opsmill/infrahub/issues/6502))
20+
- Update the cypher query that saves a diff to use less memory. ([#6568](https://github.com/opsmill/infrahub/issues/6568))
21+
- Add missing database session instantiations
22+
- Display generic relationships with cardinality one in the object detail view.
23+
- Fixes schema migration to add new attributes, so that it no longer adds that attribute to nodes that have been deleted. Includes a migration to clean up those illegal edges.
24+
1425
## [Infrahub - v1.2.11](https://github.com/opsmill/infrahub/tree/infrahub-v1.2.11) - 2025-05-23
1526

1627
### Added

backend/infrahub/proposed_change/tasks.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -254,12 +254,12 @@ async def run_proposed_change_data_integrity_check(
254254
"""Triggers a data integrity validation check on the provided proposed change to start."""
255255
await add_tags(branches=[model.source_branch], nodes=[model.proposed_change])
256256

257-
async with service.database.start_transaction() as dbt:
258-
destination_branch = await registry.get_branch(db=dbt, branch=model.destination_branch)
259-
source_branch = await registry.get_branch(db=dbt, branch=model.source_branch)
257+
async with service.database.start_session() as dbs:
258+
destination_branch = await registry.get_branch(db=dbs, branch=model.destination_branch)
259+
source_branch = await registry.get_branch(db=dbs, branch=model.source_branch)
260260
component_registry = get_component_registry()
261261

262-
diff_coordinator = await component_registry.get_component(DiffCoordinator, db=dbt, branch=source_branch)
262+
diff_coordinator = await component_registry.get_component(DiffCoordinator, db=dbs, branch=source_branch)
263263
await diff_coordinator.update_branch_diff(base_branch=destination_branch, diff_branch=source_branch)
264264

265265

@@ -1006,11 +1006,11 @@ async def run_proposed_change_pipeline(
10061006

10071007
await _gather_repository_repository_diffs(repositories=repositories, service=service)
10081008

1009-
async with service.database.start_transaction() as dbt:
1010-
destination_branch = await registry.get_branch(db=dbt, branch=model.destination_branch)
1011-
source_branch = await registry.get_branch(db=dbt, branch=model.source_branch)
1009+
async with service.database.start_session() as dbs:
1010+
destination_branch = await registry.get_branch(db=dbs, branch=model.destination_branch)
1011+
source_branch = await registry.get_branch(db=dbs, branch=model.source_branch)
10121012
component_registry = get_component_registry()
1013-
diff_coordinator = await component_registry.get_component(DiffCoordinator, db=dbt, branch=source_branch)
1013+
diff_coordinator = await component_registry.get_component(DiffCoordinator, db=dbs, branch=source_branch)
10141014
await diff_coordinator.update_branch_diff(base_branch=destination_branch, diff_branch=source_branch)
10151015

10161016
diff_summary = await service.client.get_diff_summary(branch=model.source_branch)

changelog/+add-missing-sessions.fixed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/+generic-one.fixed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/+posthumous-edges.fixed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/6478.fixed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/6502.fixed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

changelog/6568.fixed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ services:
180180
- 6362:6362
181181

182182
task-manager:
183-
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.2.11}"
183+
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.2.12}"
184184
command: uvicorn --host 0.0.0.0 --port 4200 --factory infrahub.prefect_server.app:create_infrahub_prefect
185185
restart: unless-stopped
186186
depends_on:
@@ -213,7 +213,7 @@ services:
213213
retries: 5
214214

215215
infrahub-server:
216-
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.2.11}"
216+
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.2.12}"
217217
restart: unless-stopped
218218
command: >
219219
gunicorn --config backend/infrahub/serve/gunicorn_config.py
@@ -259,7 +259,7 @@ services:
259259
deploy:
260260
mode: replicated
261261
replicas: 2
262-
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.2.11}"
262+
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.2.12}"
263263
command: prefect worker start --type infrahubasync --pool infrahub-worker --with-healthcheck
264264
restart: unless-stopped
265265
depends_on:
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
title: Release 1.2.12
3+
---
4+
<table>
5+
<tbody>
6+
<tr>
7+
<th>Release Number</th>
8+
<td>1.2.12</td>
9+
</tr>
10+
<tr>
11+
<th>Release Date</th>
12+
<td>June 3rd, 2025</td>
13+
</tr>
14+
<tr>
15+
<th>Release Codename</th>
16+
<td>Chicago, Patch #12</td>
17+
</tr>
18+
<tr>
19+
<th>Tag</th>
20+
<td>[infrahub-v1.2.12](https://github.com/opsmill/infrahub/releases/tag/infrahub-v1.2.12)</td>
21+
</tr>
22+
</tbody>
23+
</table>
24+
25+
# Release 1.2.12
26+
27+
This release brings some changes and bug-fixes to resolve issues found in Infrahub v1.2.11 and prior.
28+
29+
## Main changes
30+
31+
The complete list of changes can always be found in the `CHANGELOG.md` file in the Infrahub Git repository.
32+
33+
### Fixed
34+
35+
- Remove uniqueness constraint on generic templates to support upsert mutations ([#6478](https://github.com/opsmill/infrahub/issues/6478))
36+
- Add a migration to clean up duplicated data from improper merges of branches containing node schemas with an updated kind or inheritance ([#6502](https://github.com/opsmill/infrahub/issues/6502))
37+
- Update the cypher query that saves a diff to use less memory. ([#6568](https://github.com/opsmill/infrahub/issues/6568))
38+
- Add missing database session instantiations
39+
- Display generic relationships with cardinality one in the object detail view.
40+
- Fixes schema migration to add new attributes, so that it no longer adds that attribute to nodes that have been deleted. Includes a migration to clean up those illegal edges.
41+
42+
## Upgrade guide
43+
44+
Please refer to the Upgrade Guide in the documentation for more information on how to upgrade your Infrahub instance.
45+
46+
https://docs.infrahub.app/guides/upgrade
47+
48+
**After the upgrade, it is strongly recommended to rebase any open branches in Infrahub once the system is online again.**

0 commit comments

Comments
 (0)