Skip to content

Commit

Permalink
Merge pull request #5038 from opsmill/bdl-20241125-1.1b1
Browse files Browse the repository at this point in the history
version 1.1.0b1
  • Loading branch information
lykinsbd authored Nov 25, 2024
2 parents eb9c540 + bec8fb8 commit f120de0
Show file tree
Hide file tree
Showing 24 changed files with 144 additions and 22 deletions.
1 change: 1 addition & 0 deletions .vale/styles/Infrahub/sentence-case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ exceptions:
- TLS
- Tony Stark
- TransformPython
- Trusted Root Certificate Store
- UI
- Vale
- VS Code
Expand Down
28 changes: 28 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,34 @@ This project uses [*towncrier*](https://towncrier.readthedocs.io/) and the chang

<!-- towncrier release notes start -->

## [1.1.0](https://github.com/opsmill/infrahub/tree/v1.1.0) - 2024-11-29

### Removed

- Remove at parameter from GraphQL mutate functions ([#3587](https://github.com/opsmill/infrahub/issues/3587))
- Remove the "role" attribute of base schema account node
- This attribute was no longer useful as roles are defined as dedicated nodes and are tightly related to permissions
- Remove the /api/diff/data and /api/diff/schema endpoints that have been replaced by the DiffTree GraphQL query

### Added

- Add a "deprecation" property to attribute and relationship schema in order to allow users to identify deprecated fields for nodes and provide a user-friendly message about the deprecation reasons ([#4245](https://github.com/opsmill/infrahub/issues/4245))
- Add ability to use node HFID to create a related node on a generic relationship ([#4649](https://github.com/opsmill/infrahub/issues/4649))

### Fixed

- Fix search anywhere so it looks at Groups ([#3173](https://github.com/opsmill/infrahub/issues/3173))
- Loosened up logic to determine when an artifact needs to be regenerated during a proposed change. This is to ensure that we always generate a new artifact if required. Until some other sections are refactored this will also mean that Infrahub will generate artifacts in a few situations where it's not strictly required. This last part is a temporary solution. ([#4198](https://github.com/opsmill/infrahub/issues/4198))
- Use the repository object ID as name for its git working copy directory ([#4296](https://github.com/opsmill/infrahub/issues/4296))
- Search anywhere now supports IPv6 extended format ([#4613](https://github.com/opsmill/infrahub/issues/4613))
- Synchronise git repository clones and updates for task workers in order to remove the need for a shared storage ([#4789](https://github.com/opsmill/infrahub/issues/4789))
- Remove Profile in registry for renamed schema nodes ([#4909](https://github.com/opsmill/infrahub/issues/4909))
- Forbid changing the "optional" property of an inherited attribute to not break GraphQL schema generation ([#4936](https://github.com/opsmill/infrahub/issues/4936))
- Add support for irresolvable conflicts to the diff logic and DiffTree GraphQL query
- Fix a bug that prevented updating a relationship during a merge if ONLY the metadata was updated and not the peer
- Fix permission check when using multiple backends, if one grants a permission the next ones must not be queried
- Update the api/diff/artifacts endpoint to use a dedicated query

## [1.0.7](https://github.com/opsmill/infrahub/tree/v1.0.7) - 2024-11-20

### Fixed
Expand Down
1 change: 0 additions & 1 deletion changelog/+diff-api-endpoints.removed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/+diff-artifacts.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/+irresolvable-conflicts.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/+merge-rel-metadata.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/+perm-accountrole.removed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/+perm-check.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/3173.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/3587.removed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4198.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4245.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4296.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4613.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4649.added.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4789.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4909.fixed.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog/4936.fixed.md

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ services:
retries: 5

infrahub-server:
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.0.7}"
image: "${INFRAHUB_DOCKER_IMAGE:-registry.opsmill.io/opsmill/infrahub}:${VERSION:-1.1.0}"
restart: unless-stopped
command: >
gunicorn --config backend/infrahub/serve/gunicorn_config.py
Expand Down
107 changes: 107 additions & 0 deletions docs/docs/release-notes/infrahub/release-1_1_0.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
---
title: Release 1.1.0
---
<table>
<tbody>
<tr>
<th>Release Number</th>
<td>1.1.0</td>
</tr>
<tr>
<th>Release Date</th>
<td>November 29th, 2024</td>
</tr>
<tr>
<th>Release Codename</th>
<td>Lyon</td>
</tr>
<tr>
<th>Tag</th>
<td>[infrahub-v1.1.0](https://github.com/opsmill/infrahub/releases/tag/infrahub-v1.1.0)</td>
</tr>
</tbody>
</table>

# Release 1.1.0

This release contains both new features and bug-fixes to resolve issues found in Infrahub v1.0.7 and prior.

## Main changes

The complete list of changes can always be found in the `CHANGELOG.md` file in the Infrahub Git repository.

### Removed

- Remove at parameter from GraphQL mutate functions ([#3587](https://github.com/opsmill/infrahub/issues/3587))
- Remove the "role" attribute of base schema account node
- This attribute was no longer useful as roles are defined as dedicated nodes and are tightly related to permissions
- Remove the /api/diff/data and /api/diff/schema endpoints that have been replaced by the DiffTree GraphQL query

### Added

- Add a "deprecation" property to attribute and relationship schema in order to allow users to identify deprecated fields for nodes and provide a user-friendly message about the deprecation reasons ([#4245](https://github.com/opsmill/infrahub/issues/4245))
- Add ability to use node HFID to create a related node on a generic relationship ([#4649](https://github.com/opsmill/infrahub/issues/4649))

### Fixed

- Fix search anywhere so it looks at Groups ([#3173](https://github.com/opsmill/infrahub/issues/3173))
- Loosened up logic to determine when an artifact needs to be regenerated during a proposed change. This is to ensure that we always generate a new artifact if required. Until some other sections are refactored this will also mean that Infrahub will generate artifacts in a few situations where it's not strictly required. This last part is a temporary solution. ([#4198](https://github.com/opsmill/infrahub/issues/4198))
- Use the repository object ID as name for its git working copy directory ([#4296](https://github.com/opsmill/infrahub/issues/4296))
- Search anywhere now supports IPv6 extended format ([#4613](https://github.com/opsmill/infrahub/issues/4613))
- Synchronise git repository clones and updates for task workers in order to remove the need for a shared storage ([#4789](https://github.com/opsmill/infrahub/issues/4789))
- Remove Profile in registry for renamed schema nodes ([#4909](https://github.com/opsmill/infrahub/issues/4909))
- Forbid changing the "optional" property of an inherited attribute to not break GraphQL schema generation ([#4936](https://github.com/opsmill/infrahub/issues/4936))
- Add support for irresolvable conflicts to the diff logic and DiffTree GraphQL query
- Fix a bug that prevented updating a relationship during a merge if ONLY the metadata was updated and not the peer
- Fix permission check when using multiple backends, if one grants a permission the next ones must not be queried
- Update the api/diff/artifacts endpoint to use a dedicated query

## Migration guide

The process to migrate your instance of Infrahub to the latest version may vary depending on your deployment of Infrahub.
However, at a high-level, it will involve getting the latest version of the Infrahub code, and then performing any needed Database Migrations and Schema updates.

Please ensure you have a **backup of your Infrahub environment** prior to attempting any migration or upgrade activities.

### Migration of an Infrahub instance

**First**, update the Infrahub version running in your environment.

Below are some example ways to get the latest version of Infrahub in your environment.

- For deployments via Docker Compose, update your container version by updating the `VERSION` environment variable and relaunch:
- `export VERSION="1.1.0"; docker compose pull && docker compose up -d`
- For deployments via Kubernetes, utilize the latest version of the Helm chart supplied with this release

**Second**, once you have gotten the desired version of Infrahub in your environment, please run the following commands.

> Note: If you are running Infrahub in Docker/K8s, these commands need to run from a container where Infrahub is installed.
```shell
infrahub db migrate
infrahub db update-core-schema
```

**Finally**, restart all instances of Infrahub.

### Migration of a dev or demo instance

If you are using the `dev` or `demo` environments, we have provided `invoke` commands to aid in the migration to the latest version.
The below examples provide the `demo` version of the commands, however similar commands can be used for `dev` as well.

```shell
invoke demo.stop
invoke demo.build
invoke demo.migrate
invoke demo.start
```

If you don't want to keep your data, you can start a clean instance with the following command.

> **Warning: All data will be lost, please make sure to backup everything you need before running this command.**
```shell
invoke demo.destroy demo.build demo.start demo.load-infra-schema demo.load-infra-data
```

The repository https://github.com/opsmill/infrahub-demo-edge has also been updated, it's recommended to pull the latest changes into your fork.
6 changes: 4 additions & 2 deletions docs/sidebars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,14 +312,16 @@ const sidebars: SidebarsConfig = {
slug: 'release-notes/infrahub',
},
items: [
// 'release-notes/infrahub/release-1_0_7-DRAFT'
// 'release-notes/infrahub/release-1_1_1-DRAFT'
'release-notes/infrahub/release-1_1_0',
'release-notes/infrahub/release-1_0_7',
'release-notes/infrahub/release-1_0_6',
'release-notes/infrahub/release-1_0_5',
'release-notes/infrahub/release-1_0_4',
'release-notes/infrahub/release-1_0_3',
'release-notes/infrahub/release-1_0_2',
'release-notes/infrahub/release-1_0_1',
'release-notes/infrahub/release-1_0',
'release-notes/infrahub/release-1_0_0',
'release-notes/infrahub/release-0_16_4',
'release-notes/infrahub/release-0_16_3',
'release-notes/infrahub/release-0_16_2',
Expand Down
4 changes: 2 additions & 2 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.2.5
version: 3.3.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.0.7"
appVersion: "1.1.0"

dependencies:
- name: neo4j
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "infrahub-server"
version = "1.1.0-dev"
version = "1.1.0b1"
description = "Infrahub is taking a new approach to Infrastructure Management by providing a new generation of datastore to organize and control all the data that defines how an infrastructure should run."
authors = ["OpsMill <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit f120de0

Please sign in to comment.