Repository navigation
feat(dr-egeria): Zone Membership in Basic templates; blank zones no longer cleared (6.2.30) - #577
Merged
Merged
Conversation
…sets no zones Zone Membership moves from the Advanced to the Basic level in the 14 family specs that define it (Spec Editor API, default stays empty), so 126 commands show it in their Basic templates with no value. refresh_specs regenerated the templates, generated_format_sets.json, base_report_formats.py and the seed: the *-DrE-Basic report specs gain a Zone Membership column (123 specs). Fix: a Zone Membership heading with no value parses to an empty list, and _sync_zone_membership then cleared the element's ZoneMembership classification on Create and Update. With the attribute now in the Basic templates, filling one in and leaving it blank would have wiped an element's zones. An empty or absent value now sets no zones and leaves existing zones alone; Declassify Zone Membership removes them. Link Notification Subscriber sends an empty value as None, not []. Tests: spec level and default, Basic template has no default value, parsing of absent/blank/filled headings, and no Egeria call for an empty value. Release note: docs/release-notes/6.2.30.md. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…fication object
Egeria v6 returns an element's zones as an ElementClassification at
elementHeader.zoneMembership. populate_common_columns' generic header fallback
put that whole object, stringified, in the zone_membership column of the
*-DrE-Advanced specs, and of the *-DrE-Basic specs that gained the column in
this branch.
_zone_membership_text reads classificationProperties.zoneMembership (a list
or a single string; also an older header's ZoneMembership entry in
classifications) and joins it ("a, b"; "" for no zones).
populate_common_columns uses it for the zone_membership column, and
_extract_referenceable_properties includes it.
Tests: the v6 header shape, two zones, a single string, the classifications
shape, no zones, and Collection-DrE-Basic/-Advanced through
populate_common_columns and generate_output DICT.
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
With no Egeria connection, or local-only set, Create Dashboard Sheet uses the sheet's name as its GUID. The base processor's post-execution step then sent a filled-in Zone Membership to Egeria with that name as the GUID. With no client it raised AttributeError, which failed the command. The processor now marks parsed_output["local_only"]. The base step 10 skips the zone, parent-relationship and classification syncs for it and records "Zone Membership - SKIPPED (not written (local only))". The sheet's output says "Zone Membership: not written (local only)" when zones were given. Tests: local-only env and no client, each with Zone Membership: no Egeria writes, the note in the output and message, and the sheet in the local store. Without zones, nothing about zones is reported. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
dwolfson
added a commit
to dwolfson/egeria-workspaces
that referenced
this pull request
Nov 10, 2026
126 commands show Zone Membership in their Basic template, default empty. Deployed after pyegeria 6.2.30 (odpi/egeria-python#577), where a blank Zone Membership no longer clears an element's zones. Also carries 4 template updates that had not reached this repo: Create Subscription Type (Minimum Notification Interval) and Create Display Data Container (renderer valid values), basic and advanced. Architect read-back PASS. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dr.Egeria: Zone Membership moves from the Advanced to the Basic templates, with an empty default. This PR also fixes a data-loss bug the move would have exposed and two smaller zone bugs. It bumps pyegeria to 6.2.30.
Zone Membership in the Basic templates
Zone Membership changes from
AdvancedtoBasicin the 14 compact family specs that define it. The edit was made through the Spec Editor API.default_valuestays"".126 commands now show Zone Membership in their Basic template, with no value:
In the 127 Advanced templates, the attribute only moves position.
refresh_specs --merge-reportsregenerated:sample-data/templates/{basic,advanced};md_processing/data/generated_format_sets.json;pyegeria/view/base_report_formats.py;pyegeria/view/seed, 14 family files; the census is unchanged at 437 total, 376 runnable, 0 unrunnable, 61 format-only).123
*-DrE-Basicreport specs gain a Zone Membership column, as the Advanced specs already had.Fixes
### Zone Membershipheading with no value, which is exactly what the Basic template now shows, parses to[].AsyncBaseCommandProcessor._sync_zone_membershipthen calledclear_zone_membershipafter every Create/Update/Upsert. So an Update with the field left blank wiped the element's zones.Declassify Zone Membershipremoves them.Link Notification Subscribernow sends an empty Zone Membership asNone, not[].ElementClassificationatelementHeader.zoneMembership.populate_common_columns' generic header fallback stringified that whole object into the cell, which already affected the Advanced specs._zone_membership_text()joinsclassificationProperties.zoneMembershipas"a, b"(""when there are none)._extract_referenceable_propertiesincludes it as well.Create Dashboard Sheetuses the sheet's name as its GUID. Zones were then sent to Egeria under that name, or the command failed withAttributeErrorwhen there was no client.parsed_output["local_only"]now makes step 10 skip the zone, parent and classification syncs. The output says "Zone Membership: not written (local only)".Tests
tests/micro-tests/test_zone_membership_basic.py(22 tests):[],Noneor"";Collection-DrE-Basic/-Advancedthroughpopulate_common_columnsandgenerate_outputDICT.tests/micro-tests/test_dashboard_sheets_in_egeria.py: a local-only sheet with zones, both via the environment variable and with no client, makes no Egeria writes and says so; a sheet without zones says nothing about zones.Version
pyproject.tomlanduv.lock: 6.2.29 → 6.2.30.docs/release-notes/6.2.30.md.my_egeria/is top-level,serve_my_profileis installed, andpyegeria6.2.30 imports.The matching template mirror for egeria-workspaces is
dwolfson/egeria-workspacesbranchfeat/zone-membership-basic-templates(0420abe2). It deploys after this release and the image rebuilds.🤖 Generated with Claude Code