Repository navigation
feat(dr-egeria): commands for Egeria 6.3 report specs, measurements and dashboards - #541
Merged
Merged
Conversation
…and dashboards Egeria odpi/egeria#9432 added ReportSpec, MeasurementSpecification and Dashboard, the BasisDataField / AsOfDataField / ReportTypeInstance / ReportRunOf relationships, and placement attributes on DisplayDataContainer and DisplayDataField. - Properties models with class strings equal to the Java bean names: MeasurementSpecification (and its DataValueSpecification base), DataSet, Report (+ outputFormat, reportParameters), Dashboard, the four relationship beans, ReportSpec, DisplayDataContainer / DisplayDataField. - CollectionManager.create_report_spec (sync + async). - MeasurementSpecification through create/update_data_value_specification. - DataDesigner link/detach for basis-data-fields, as-of-data-fields, report-type-instances and report-runs (sync + async). - Report specs Report-Specs, Measurement-Specifications, Dashboards. - 37 micro-tests with a fake transport. Micro-tests on 3.13: 1991 run, 0 failed, 2 skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…nd dashboards Builds on the pyegeria API support for odpi/egeria#9432. - Create/Update Report Spec (COLLECTION_SUBTYPES; microflow, target type name, aliases, output types, include preamble). - Create/Update Measurement Specification (DataValueSpecificationProcessor; completeness declared, confidence form, uncertainty form, absence sentences). - Create/Update Dashboard (new DashboardProcessor, AssetMaker path). - Create/Update Display Data Container / Display Data Field (Schema Maker; renderer, placement kind, span, presentation style alias "Placement Emphasis", markdown content, input field). - Link/Detach Basis Data Field, As Of Data Field, Report Type Instance, Report Run Of (DataDesignerLinkProcessor table). - Create Report also writes the typed outputFormat and reportParameters; Output Format lists every format in the report-spec registry plus KPI. - New valid-value attributes name their Egeria property, so they are validated against the server's valid metadata values. Spec edits made through the Spec Editor API; refresh_specs --merge-reports regenerated templates and report specs. Micro-tests on 3.13: 2048 run, 0 failed, 2 skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
…etContent Owner decision 2026-11-07: a REPORT placement is a DisplayDataField and the report it shows is linked by the existing DataSetContent relationship from the Dashboard to the Report, with queryId = the placement's qualifiedName and queryType = "placement". No new relationship type. - AssetMaker.link_placement_report / detach_placement_report (sync + async). DataSetContent is multi-link, so detach removes only the relationship whose queryId is this placement, leaving other placements of the same report bound. - AssetMaker.get_placement_reports and resolve_placement_reports: an explicit state per placement (bound / unbound / ambiguous), never an empty value; a dashboard that cannot be read is an error, not "all unbound". - 9 micro-tests with a fake transport. Micro-tests on 3.13: 2057 run, 0 failed, 2 skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
… Dashboard Sheet Found in the live test against the #9432 image: Create Dashboard Sheet had the alternate name "Dashboard". Its alias registration ran after the Create Dashboard registration and took over that key, so "Create Dashboard" wrote a local Dashboard Sheet record (~/.pyegeria/dashboard_sheets.json) and reported success, and no Egeria Dashboard was created. Drop the "Dashboard" alias from Create Dashboard Sheet (it keeps "Sheet"), made through the Spec Editor API; templates regenerated. The dispatcher test now checks the processor class each new command resolves to, not only that one exists. Micro-tests on 3.13: 2067 run, 0 failed, 2 skipped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
dwolfson
marked this pull request as ready for review
November 7, 2026 21:30
This was referenced Nov 7, 2026
Merged
dwolfson
added a commit
that referenced
this pull request
Nov 7, 2026
Ships #537 (five link methods sent a properties class Egeria lacks), #538 (population= is the count keyword; scope= deprecated), #539 (declarations for every registered routine), #540 and #541 (client support and Dr.Egeria commands for Egeria 6.3 report specs, measurements and dashboards), #542 (built-in declaration tests scoped to pyegeria's own routines) and #543 (report_spec passed through the MetadataExpert find methods). 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 commands for Egeria 6.3 report specs, measurements and dashboards (odpi/egeria#9432)
Stacked on the pyegeria API PR (branch
claude/report-spec-types-804227); merge that first.Compact-spec edits were made through the Dr.Egeria Spec Editor's REST API, then
refresh_specs --merge-reportsregenerated the templates, help and report specs.New commands
COLLECTION_SUBTYPES;set_collection_manager_bodywrites microflow, targetTypeName, aliases, outputTypes, includePreamble)DashboardProcessor(v2/report.py, AssetMaker path like Report)Presentation Stylehas the aliasPlacement Emphasis.Changed
outputFormatandreportParameters(the Report Parameters map as a JSONstring) as well as the existing
additionalPropertieskeys, which the Portal's local dashboards still read.registry plus
KPI: BAR, DICT, FORM, GRAPH, HTML, JSON, KPI, LIST, MD, MERMAID, PIE, REPORT, REPORT-GRAPH, SERIES,TABLE (was 8). A micro-test fails if the registry gains a format the list lacks.
Dashboard placements → reports (owner decision 2026-11-07)
A REPORT placement is a DisplayDataField; its report is linked by the existing
DataSetContentrelationship from theDashboard to the Report, with
queryId= the placement's qualifiedName andqueryType= "placement". No newrelationship type.
AssetMakergains:link_placement_report(dashboard_guid, report_guid, placement_qualified_name)(sync + async).detach_placement_report(dashboard_guid, placement_qualified_name)(sync + async).DataSetContentis multi-link,so this removes only the relationship(s) whose queryId is this placement; another placement showing the same report
stays bound. It returns the number removed.
get_placement_reports(dashboard_guid, placement_qualified_names)and the pureresolve_placement_reports(element, names): an explicit state for every placement —bound(report GUID/name, relationship GUID),unbound(nolink) or
ambiguous(several links, all listed, none chosen), never an empty value. A dashboard that can't be readraises an error instead of reporting every placement unbound.
Valid values
Every new closed-list attribute (Completeness Declared, Confidence Form, Uncertainty Form, Layout Style, Result State,
Result State Reason, Renderer, Placement Kind, Span, Presentation Style, and Output Format) is style
Valid Valuewithproperty_nameset, so Dr.Egeria validates it against Egeria's valid metadata values for that property when theserver has them. No list is hard-coded except: Output Format (the registry list, as asked), and the three measurement
words, whose fallback lists are the values Egeria's own property descriptions declare (used only when the server
returns none). The core content pack's values should be read live once the new image is deployed.
Differences from the design note (report-spec-pipeline-model.md §8a–8d) — following Egeria
Same list as the API PR; the first four are Egeria design, accepted by the owner 2026-11-07: no
DashboardPlacement(placements are DisplayDataField / DisplayDataContainer, hence the twonew Schema Maker commands);
ReportTypeInstancefrom ReportType (notReportInstanceOffrom ReportSpec);ReportRunOfis ResultsSet → Report;
refreshTimeInterval, a long in minutes (notrefreshSeconds). Following Egeria as shipped: nostateSet/basisField/asOfFieldstrings;presentationStyle(notemphasis);spana string validated by valid metadata (not ONE/TWO/FULL);targetTypeName(nottargetType);reportParametersa JSON string.Also: the existing local
Create Dashboard Sheet/Link Report to Dashboard Sheet/Add Text on Dashboard Sheetcommands are unchanged; moving them onto these Egeria elements (§8d "Migration") is not in this PR.
Checks
scripts/dr_egeria_attribute_consumption_audit.pyfor Views & Reports, Data Designer, Schema Maker: 0 findings.POST /api/validate: structural OK, the same 28 pre-existing warnings as main.validate_compact_specsagainst the live #9432 image (read-only type check): 0 errors. Against thepre-#9432 image it gave 7
OM_TYPE_INVALID, one per new type.test_dashboard_placements.py(9),tests/micro-tests/test_dr_egeria_report_spec_types.py(41);test_data_designer_links.pynow also covers thefour new relationships for Link and Detach/Unlink/Remove.
Not in this PR
help file into the
dr-egeriaglossary.🤖 Generated with Claude Code