diff --git a/docs/release-notes/6.3.4.md b/docs/release-notes/6.3.4.md new file mode 100644 index 00000000..7b2129ce --- /dev/null +++ b/docs/release-notes/6.3.4.md @@ -0,0 +1,78 @@ +# pyegeria 6.3.4 + +pyegeria 6.3.4 adds **solution boundaries** (odpi/egeria #9465): pyegeria methods, report specs and the Dr.Egeria +commands Create Solution Boundary and Create Design Model Boundary. It also fixes how Dr.Egeria updates a boundary, +and makes the refused `Status: DRAFT` message point to Content Status. + +```bash +pip install -U pyegeria +``` + +**Needs an Egeria platform with odpi/egeria#9465 (6.4-SNAPSHOT 5a8d6a12 or later) for the boundary features. +Platforms without odpi/egeria#9465 do not have the boundary requests, so those calls fail.** Everything else works as +in 6.3.3. + +Checked for this release: +- the 3.13 micro-tests; +- the Dr.Egeria round-trip probe on a scratch Egeria at 5a8d6a12, with a new baseline `5a8d6a12.json`; +- a live check of the boundary features on that scratch platform, which found the Dr.Egeria defect fixed below. + +## New + +- **Solution boundaries in `SolutionArchitect`.** + - Methods: `create_solution_boundary`, `create_solution_boundary_from_template`, `update_solution_boundary`, + `delete_solution_boundary`, `find_solution_boundaries`, `get_solution_boundary_by_guid` and + `get_solution_boundaries_by_name`, each as a sync and an `_async_` pair. + - Members are added and removed with the Collection Manager's member calls, as for blueprints. + - `generate_solution_boundary_output` formats the results. + - Egeria refuses to delete a solution boundary that still has members (OMAG-GENERIC-HANDLERS-403-005); remove its + members first. +- **Property classes** `SolutionBoundaryProperties` and `DesignModelBoundaryProperties` in `pyegeria.models`. They are + collections and add no property of their own. +- **Report specs `Solution-Boundary` and `Solution-Boundary-Mermaid`.** + - A **Member Hierarchy** column lists a boundary's members, with nested boundaries as indented lines, both levels. + It stops, and says so, at 8 levels or 500 lines. + - `Solution-Boundary` is the default `report_spec` of the boundary finds. +- **Dr.Egeria: Create Solution Boundary and Create Design Model Boundary** (Solution Architect family), with Basic and + Advanced templates and report specs. + - Members are added with the existing Collection Membership command. + - A Design Model Boundary is created, read and updated through the collection requests; the view service has no + boundary request for it. Its find also returns solution boundaries, because a solution boundary is a design model + boundary. +- The generated Properties catalog now comes from Egeria 2e22b1e85b, which knows both boundary classes. + +## Fixes + +- **Dr.Egeria: a boundary command never changes, or creates, the other kind of boundary.** + - An Update aimed at an element of the other boundary type is refused, + with a message that names both types and the GUID. Nothing is written. + - An `Update Solution Boundary` or `Update Design Model Boundary` with an explicit GUID either updates that element + or is refused. Before, aiming `Update Solution Boundary` at a Design Model Boundary's GUID created a new Solution + Boundary: the boundary read found nothing, the lookup fell back to the name, and the Update became a Create. Now + the element is read by GUID and the command is refused if it is the other type, missing or unreadable. + - Commands without a GUID, and all other commands, look up as before. +- **Dr.Egeria: `Status: DRAFT` points to Content Status.** + - Since 6.3.3 (PY-68), the `Status` that Dr.Egeria adds to 12 commands is checked against Egeria's element + statuses, so `Status: DRAFT` is refused. + - On Create Schema Type, Schema Attribute, Display Data Container and Display Data Field, the error now ends: + "'Status' here is the element status; to set DRAFT, use 'Content Status' instead". Write `Content Status: DRAFT`. + - Create Rating, Create Like and the six glossary Classify/Declassify commands have no content status, so DRAFT has + no place there. +- **Dr.Egeria: Create Solution Role no longer offers Title and Role Domain Identifier.** Egeria stores neither for a + solution role, so the templates no longer show them. They are still accepted if given, and reported as not stored. + +## Known issues + +- **Update by Display Name only can create a duplicate when Create added a Version Identifier; give the Version + Identifier or the GUID (#613).** + - Create fills in the default Version Identifier (1.0) and puts it in the qualified name. Update does not, so an + Update that names only the Display Name can miss the element and be turned into a Create. + - This affects most Create commands that have a qualified-name prefix. It is not new in 6.3.4. + +## Also in this release + +- Round-trip probe (`scripts/dr_egeria_roundtrip_probe`): + - a baseline for Egeria 5a8d6a12; + - it sends DRAFT as Content Status where Status is the element status; + - the Project Scope known gap is removed, now that it matches. +- CI: `ossf/scorecard-action` 2.6.0 (#608). diff --git a/docs/release-notes/next.md b/docs/release-notes/next.md index 678b347f..a6bf52ba 100644 --- a/docs/release-notes/next.md +++ b/docs/release-notes/next.md @@ -3,7 +3,8 @@ Notes collected on `release/next` for the next release. The version number is set when it's cut. Items that shipped in 6.2.42 (`NO_PASSWORD`, `AuthoringRefused.answer`, `can_edit`, `used_by`, the per-identity spec cache, the unique-name read fix, `get_elements` paging, and the `load_egeria_report_specs` deprecation) are in the 6.2.42 -notes and are not repeated here. +notes and are not repeated here. Items that shipped in 6.3.4 (solution boundaries in pyegeria and Dr.Egeria, the +boundary Update fix, the Content Status pointer and the Solution Role template fix) are in the 6.3.4 notes. ## New @@ -71,33 +72,6 @@ notes and are not repeated here. synchronization, delete method, templates, configuration properties), and the target's own name and type come from the target. The spec runs `get_catalog_targets`, which needs the integration connector's GUID and is now on the report-spec allowlist. -- **Property classes for the new solution boundaries** (odpi/egeria #9465): `SolutionBoundaryProperties` and - `DesignModelBoundaryProperties` in `pyegeria.models`. They are collections like `SolutionBlueprintProperties` and add no - property of their own. -- **Solution boundaries in `SolutionArchitect`** (odpi/egeria #9465): `create_solution_boundary`, - `create_solution_boundary_from_template`, `update_solution_boundary`, `delete_solution_boundary`, - `find_solution_boundaries`, `get_solution_boundary_by_guid` and `get_solution_boundaries_by_name`, each as a sync and an - `_async_` pair, one for each of the 7 requests the solution-architect view service has for `/solution-boundaries`. Membership uses - the Collection Manager's add and remove member calls, as for blueprints. `generate_solution_boundary_output` formats the - results. These need a platform with the #9465 build. The Dr.Egeria commands are below. -- **Report specs `Solution-Boundary` and `Solution-Boundary-Mermaid`** (odpi/egeria #9465), and a "Member Hierarchy" column: the - members of a boundary, with nested boundaries as indented lines (`solution_boundary_member_hierarchy`). It follows the - `nestedElements` and `sideLinks` of each member (the field names were confirmed on a platform with the #9465 build), shows a side - link only when it is not the member's own parent, does not follow a member already above it, and says when it stops at 8 levels or - 500 lines. The find method is on the report-spec allowlist. The solution-boundary methods must not be released without these specs: - their default `report_spec` is `Solution-Boundary`. -- **The generated Properties catalog knows the boundary classes** (odpi/egeria #9465): it is now generated from Egeria - 2e22b1e85b, which adds `SolutionBoundaryProperties` and `DesignModelBoundaryProperties`, and strict validation maps - `SolutionArchitect.find_solution_boundaries` to `SolutionBoundary`. -- **Dr.Egeria: Create Solution Boundary and Create Design Model Boundary** (odpi/egeria #9465), in the Solution Architect - family, with Basic and Advanced templates and report specs. Members are added with the existing Collection Membership - command. Design Model Boundary has no request of its own in the solution-architect view service, so it is created, read - and updated through the collection requests. Its find also returns solution boundaries, because a solution boundary is - a design model boundary. -- **Dr.Egeria: a boundary command does not change the other kind of boundary.** When an Update (or a Create that found an - existing element) would change an element of the other boundary type, the command is refused with a message naming - both types and the GUID, and nothing is written. If the element's type can't be read, the command is refused the same - way. ## Planned for pyegeria 6.4 or the next release @@ -219,12 +193,6 @@ notes and are not repeated here. - **Status attributes offer all five element statuses** (PY-68). The Dr.Egeria `Status` attribute looked up the valid metadata property `Status`, whose valid-value set in Egeria holds no values, so the templates listed none. It now looks up `status` and the templates offer ACTIVE, DELETED, INVALID, OTHER and UNKNOWN. - - **Behaviour change: use Content Status for DRAFT and other lifecycle values.** On the 12 commands whose `Status` is - the element status Dr.Egeria adds by default, the value is now checked against those five, so `Status: DRAFT` is - refused where it used to be accepted and stored as the content status. On Create Schema Type, Schema Attribute, - Display Data Container and Display Data Field, write `Content Status: DRAFT`; the error now says so ("'Status' here - is the element status; to set DRAFT, use 'Content Status' instead"). Create Rating, Create Like and the six - glossary Classify/Declassify commands have no content status, so DRAFT has no place there. - **The spec-cache says "not effective for this read"** (PY-70). When Egeria answers OMAG-REPOSITORY-HANDLER-400-010 for a pinned spec, the entry is still dropped from the cache, but its reason no longer says the element is gone or "no longer visible". `karma_leaderboard` is declared to return `list[dict] | None` (None when its find failed). @@ -233,14 +201,6 @@ notes and are not repeated here. ## Fixes -- **Dr.Egeria: an Update of a boundary with an explicit GUID updates that element or is refused.** `Update Solution - Boundary` aimed at the GUID of a Design Model Boundary used to create a new Solution Boundary: the boundary read - found nothing for the other type, the lookup fell back to the name, and the Update became a Create. Now, when an - Update Solution Boundary or Update Design Model Boundary names a GUID its own read can't find, the element is read - by GUID and the command is refused if it is the other type, missing or unreadable. Nothing is written or created. - Other commands, and boundary commands without a GUID, look up as before (found in the 6.3.4 live check). -- **Dr.Egeria: Create Solution Role no longer offers Title and Role Domain Identifier.** Egeria does not store either - for a solution role, so the templates no longer show them. They are still accepted if given, and reported as not stored. - **Authoring validation is strict** (PY-15). A spec's find method must return its target type (or a super type), and every column key must be an attribute of the target type, a key the output formatter derives, a documented related-element or annotation field, or (for a generated -DrE- spec) a Dr.Egeria command attribute. An unknown diff --git a/pyproject.toml b/pyproject.toml index 47f92f9f..dae2515a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ [project] name = "pyegeria" -version = "6.3.3" +version = "6.3.4" license = 'Apache-2.0' license-files = ["LICENSE"] authors = [{name = "Dan Wolfson", email = "dan.wolfson@pdr-associates.com"},] diff --git a/uv.lock b/uv.lock index 1ed0ae70..966465ca 100644 --- a/uv.lock +++ b/uv.lock @@ -2271,7 +2271,7 @@ sdist = { url = "https://files.pythonhosted.org/packages/f8/f6/8f49005d581cff883 [[package]] name = "pyegeria" -version = "6.3.3" +version = "6.3.4" source = { editable = "." } dependencies = [ { name = "altair" },