Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions docs/release-notes/6.2.33.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"},]
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading