From 3d1cb158677a549dd67ca35f1d292e0bef185671 Mon Sep 17 00:00:00 2001 From: Dan Wolfson Date: Tue, 10 Nov 2026 20:32:43 +0000 Subject: [PATCH] chore(release): pyegeria 6.2.33 Version bump, uv lock and release notes: report-spec consumer folders phase 2 (recursive consumer-folder sync, the consumer index, zoned specs kept out of shared caches). ISSUE-182 is not included (deferred). Signed-off-by: Dan Wolfson --- docs/release-notes/6.2.33.md | 50 ++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 +- uv.lock | 2 +- 3 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 docs/release-notes/6.2.33.md diff --git a/docs/release-notes/6.2.33.md b/docs/release-notes/6.2.33.md new file mode 100644 index 00000000..beb668e1 --- /dev/null +++ b/docs/release-notes/6.2.33.md @@ -0,0 +1,50 @@ +# pyegeria 6.2.33 + +pyegeria 6.2.33 completes the pyegeria half of report-spec consumer folders, phase 2 (#582). It applies to Egeria-held report specs only: +- A consumer folder's sync follows its sub-folders. +- A consumer index records which consumers use each report spec. +- A ReportSpec with a governance zone stays out of shared caches. + +## New + +- **Consumer-folder sync follows sub-folders.** + `sync_report_specs(recursive=None, depth_cap=5, index_consumers=True)`: + - **Default:** the sync follows the CollectionFolder members of a consumer folder + (`ReportSpecFolder::Consumer::...`). Any other folder is read flat. On `pyegeria report-specs sync`, + `--recursive` / `--no-recursive` override the default. + - **Bounded:** each GUID is read once, so a cycle or a second path doesn't repeat a read. The walk stops + 5 levels below the named folder (`depth_cap`) and never follows a RootCollection or a sibling consumer + folder. + - **Reported:** a spec found in a sub-folder is recorded against the named folder. The report names + `folders_read` and `depth_cap_reached`. + - **Not read is not removed:** if the walk was capped or a sub-folder read failed, the folder's cached + specs are kept. +- **The consumer index: which consumers use each spec.** + `build_consumer_index`, `refresh_consumer_index` and `read_consumer_index` read the root once, taking + names and labels only. The root is `PYEGERIA_REPORT_SPEC_ROOT`, default `RootCollection::ReportSpecs`. + - **Result:** `{label: [consumer, ...]}`, plus each consumer folder with its own status. + - **Cache:** the index is cached as `consumers.json` beside the spec manifest. It is reread only when + the file's mtime changes. + - **Absence is never "none":** an unreadable or missing root gives status "not read", with the reason. + An unreadable or capped consumer folder makes the status "partial". + - **Refresh:** a folder sync refreshes the index (`report.consumers` says whether the root was read). If + the refresh fails, the sync still succeeds. + +## Changed + +- **A ReportSpec with a governance zone stays out of shared caches.** A shared cache's manifest is + shared, as the Portal's is. + - **Skipped:** a shared sync doesn't sync any ReportSpec that has a governance zone, until a public-only + read is available. Zones are read from the 6.2 header key `elementHeader.zoneMembership` and from the + legacy classifications list. + - **Pruned:** a copy already in the cache is removed, and the report says why. + - **Private caches:** a per-user cache still takes zoned specs. + - **Consumer index:** zoned labels are left out, and a note says so. +- **A hidden or deleted sub-folder is gone.** When a sub-folder's member read is refused as not visible + (OPEN-METADATA-SECURITY-403-020) or not found (404), its specs are pruned and the report says so. A + genuine error, such as a timeout or a 5xx, keeps the cache as it was. + +## Not in this release + +- ISSUE-182 (a 403 reported as `AUTHORIZATION_ERROR_401`) has a fix ready on its branch. The release is + deferred until the Portal and trellis can take it at the same time. diff --git a/pyproject.toml b/pyproject.toml index 6c152782..ecf76141 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ [project] name = "pyegeria" -version = "6.2.32" +version = "6.2.33" 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 50ef4ed7..ddb55ec0 100644 --- a/uv.lock +++ b/uv.lock @@ -2238,7 +2238,7 @@ sdist = { url = "https://files.pythonhosted.org/packages/f8/f6/8f49005d581cff883 [[package]] name = "pyegeria" -version = "6.2.32" +version = "6.2.33" source = { editable = "." } dependencies = [ { name = "altair" },