Skip to content

Commit

Permalink
Merge pull request #129 from nautobot/1.1.0
Browse files Browse the repository at this point in the history
chore: Prep for 1.1.0 release
  • Loading branch information
abates authored Apr 1, 2024
2 parents 6f6e56d + cec005e commit d0b5fa4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
6 changes: 4 additions & 2 deletions docs/admin/release_notes/version_1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@

## Release Overview

-
The 1.1 release of Design Builder mostly includes performance improvements in the implementation system. There is a breaking change related to one-to-one relationships. Prior to the 1.1 release, one-to-one relationships were not saved until after the parent object was saved. The performance optimization work revealed this as a performance issue and now one-to-one relationships are treated as simple foreign keys. Since foreign key saves are not deferred by default, it may now be necessary to explicitly specify deferring the save operation. A new `deferred` attribute has been introduced that causes design builder to defer saving the foreign-key relationship until after the parent object has been saved. The one known case that is affected by this change is when setting a device primary IP when the IP itself is created as a member of an interface in the same device block. See unit tests and design examples for further explanation.

## [v1.6.0] - 2023-09
Additionally, the `design.Builder` class has been renamed to `design.Environment` to better reflect what that class does. A `Builder` alias has been added to `Environment` for backwards compatibility with a deprecation warning.

## [v1.1.0] - 2024-04

### Added

Expand Down
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ nav:
- Release Notes:
- "admin/release_notes/index.md"
- v1.0: "admin/release_notes/version_1.0.md"
- v1.1: "admin/release_notes/version_1.1.md"
- Developer Guide:
- Extending the App: "dev/extending.md"
- Contributing to the App: "dev/contributing.md"
Expand Down
11 changes: 7 additions & 4 deletions nautobot_design_builder/tests/testdata/nautobot_v2/prefixes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ designs:
locations:
- name: "site_1"
status__name: "Active"
"!ref": "site_1"

prefixes:
- location__name: "site_1"
- locations:
- "!ref:site_1"
status__name: "Active"
prefix: "192.168.0.0/24"
- "!create_or_update:location__name": "site_1"
"!create_or_update:prefix": "192.168.56.0/24"
- "!create_or_update:prefix": "192.168.56.0/24"
locations:
- "!ref:site_1"
status__name: "Active"

checks:
- equal:
- model: "nautobot.ipam.models.Prefix"
query: {location__name: "site_1"}
query: {locations__name: "site_1"}
attribute: "__str__"
- value: ["192.168.0.0/24", "192.168.56.0/24"]
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 = "nautobot-design-builder"
version = "1.0.0"
version = "1.1.0"
description = "Nautobot app that uses design templates to easily create data objects in Nautobot with minimal input from a user."
authors = ["Network to Code, LLC <[email protected]>"]
license = "Apache-2.0"
Expand Down

0 comments on commit d0b5fa4

Please sign in to comment.