Repository navigation
feat(dashboards): Dr.Egeria dashboard commands write Egeria 6.3 Dashboard elements (RS-DASH PR-1) - #570
Merged
Conversation
… (RS-DASH PR-1) Create Dashboard Sheet, Link Report to Dashboard Sheet and Add Text on Dashboard Sheet keep their names and syntax and now write the pipeline note v5.5 §8d chain: Dashboard -Schema-> DisplayDataSchemaType -AttributeForSchema-> DisplayDataContainer -NestedSchemaAttribute(position)-> one DisplayDataField per placement, with DataSetContent (queryId = the placement's qualifiedName), ScopedBy to Trellis Perspectives (DB-2) and DataDescription to the drill-down ReportSpec. Upsert by qualifiedName; a re-run writes nothing. Removing a placement or deleting a sheet never deletes a Report or ReportSpec. DB-1: every command also writes the local JSON store; --local-only (or PYEGERIA_DASHBOARD_SHEETS_LOCAL_ONLY) or an unreachable Egeria writes the store alone and says so. Create Report writes one reportParameters document (author-written values only), the typed outputFormat, and ReportTypeInstance from the spec element found under ReportSpec:: or ReportType::, with a note when the spec has no element. additionalProperties keys are kept for one release. The Dashboard asset write is shared (upsert_dashboard_asset) by Create Dashboard and Create Dashboard Sheet. DashboardSheetEgeriaWriter is the one Egeria implementation, for the processors and for migration. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
A live dry run found two real Reports ('Term Definition Completeness',
'Governance Classification Coverage') that __async_get_guid__ cannot
resolve: its unique-name lookup is rejected when another element type
shares the display name. The writer now finds the one Report whose
displayName matches exactly (the Portal's own lookup), else by
qualifiedName; two same-named Reports give a note and no link.
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
The contains-search took ~35 s per placement on the live platform; the exact by-property-value lookup filtered to type Report takes 0.1 s. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…rt lookup) - A placement added after a removal never reuses a taken position: an explicit migrate index that is already taken falls back to max+1. - A sheet with two placements of one name is refused before any write (they would collapse into one); a report and a text placement cannot share a name, in Egeria or the store. - Link Report to Dashboard Sheet resolves Report Name with the exact Report-typed lookup first, so a Report whose name another element type shares no longer fails validation. Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
A re-run's action list now names the Schema, AttributeForSchema and NestedSchemaAttribute links it found in place, so its "unchanged" count matches the first run's change count (live step (a): 9 and 9, not 9 and 6). Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
dwolfson
marked this pull request as ready for review
November 9, 2026 16:36
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.
Dashboard sheet commands write Egeria 6.3 dashboards (RS-DASH PR-1)
Branch
dwolfson:feat/dashboards-in-egeria-writes, onupstream/main259ca15 (6.2.28). Three commits:Design: report-spec pipeline note v5.5, §8d and §10.6(c). Brief:
BRIEF-RS-DASHBOARDS-IN-EGERIA-2026-11-09. Ownerdecisions DB-1, DB-2 and DB-3 were decided on 2026-11-09.
What changes
Create Dashboard Sheet,Link Report to Dashboard SheetandAdd Text on Dashboard Sheetkeep their names andsyntax. They now write this element chain:
Upsert by qualifiedName.
position never change.
Removing and deleting never touch Reports.
DashboardSheetEgeriaWriter.remove_placementdetaches theplacement's DataSetContent and deletes its field.
delete_sheetdeletes:Reports, ReportSpecs and Perspectives are never deleted, because membership is not anchoring. There are no
Dr.Egeria commands for these two operations today. The CLI in PR-2 exposes them (
python -m pyegeria.view.dashboards delete).One implementation.
report.upsert_dashboard_asset, shared byCreate DashboardandCreate Dashboard Sheet.DashboardSheetEgeriaWriter. The processors use it, and so does PR-2'smigrate.migrategoes through the writer, not markdown, so text placements round-trip byte for byte.DB-1, dual write.
dr_egeria --local-only(orPYEGERIA_DASHBOARD_SHEETS_LOCAL_ONLY=1), or an unreachable Egeria(
PyegeriaConnectionException), writes the store alone. The output says so.command. The Egeria copy is never partial.
DB-2, perspectives.
Builder, privacy, security, architecture, engineer→Data Expert, community.
Perspective::elements that exist. A missing one is written without its link, with anote. Perspectives are never created.
Perspective::Owner(and "Admin" isPerspective::Administration).PERSPECTIVE_QN_OVERRIDESmaps both.Create Report.reportParametersis one JSON document (§8d). It holds the snake_case common find attributes, theReport Parametersmap and theAnalytic Parametersmap. Values are JSON-decoded, soPage Size 25becomes25. Spec defaults the parser fills in are not pinned: only what the author wrote.outputFormat.ReportTypeInstancefrom the spec's element, found underReportSpec::orReportType::(the §7a hazard). A link to another spec is detached, and the link is never duplicated on a re-run.
ReportType::X): no ReportTypeInstance was written…", not silence.
additionalProperties.reportSpecand the other keys are still written for one release, because today's Portalreads them.
Three deviations from the brief (for the Architect read-back)
displayNameis<sheet> / <placement name>, not the bare name.Report Nameby displayName acrossall types. A field sharing the Report's displayName made the next
Link Report to Dashboard Sheetambiguous and refused. The micro-test hit this; it would have happened live.
additionalProperties.placementNameand in the qualifiedName.Report, so it was not affected.(
additionalProperties.perspectives, comma-separated, anddetailSpec).Perspective::Owner).labels make the round trip exact.
refresh_specsis not run.OM_TYPEs.refresh_specsregeneratesbase_report_formats.py, which isstage 2's file.
element".
Found live (dry runs only, read only)
__async_get_guid__cannot resolve two real Reports, 'Term Definition Completeness' and 'Governance ClassificationCoverage'. Egeria rejects its unique-name lookup (400) because another element type shares the name.
Report(0.1 s; acontains-search took ~35 s).
Link Report…predates this PR.Gate 1: micro-tests through the real dispatcher (
setup_dispatcher/V2Dispatcher.dispatch)These use an in-memory fake Egeria,
tests/micro-tests/dashboard_fake_egeria.py, with entities and relationshipsin the response shapes checked live. Each command is covered for:
Also tested:
Create ReportwithreportParametersandReportTypeInstanceunder each prefix, with no duplicate on are-run, with a relink when the spec changes, and with the "no element" note.
Full micro-suite, Python 3.13 (
uv run -p 3.13 pytest tests/micro-tests/ --junitxml …): 2524 tests, 0 failures, 0 errors, 3 skipped at 2b4c716 (JUnit:junit-dashboards-pr1-2b4c7166.xml).Not in this PR
CollectionMembership); family is kept inadditionalProperties.family.ReportRunOfhistory.Signed-off-by: Dan Wolfson dan.wolfson@pdr-associates.com
🤖 Generated with Claude Code