diff --git a/docs/admin/release_notes/version_1.1.md b/docs/admin/release_notes/version_1.1.md index f75f6532..d72302d0 100644 --- a/docs/admin/release_notes/version_1.1.md +++ b/docs/admin/release_notes/version_1.1.md @@ -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 diff --git a/mkdocs.yml b/mkdocs.yml index a426d205..38942f2b 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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" diff --git a/nautobot_design_builder/tests/testdata/nautobot_v2/prefixes.yaml b/nautobot_design_builder/tests/testdata/nautobot_v2/prefixes.yaml index 909e05d4..d6d18c19 100644 --- a/nautobot_design_builder/tests/testdata/nautobot_v2/prefixes.yaml +++ b/nautobot_design_builder/tests/testdata/nautobot_v2/prefixes.yaml @@ -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"] diff --git a/pyproject.toml b/pyproject.toml index 5a508240..9e7ab5a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 "] license = "Apache-2.0"