Skip to content

feat(dr-egeria): commands for Egeria 6.3 report specs, measurements and dashboards - #541

Merged
dwolfson merged 5 commits into
odpi:mainfrom
dwolfson:claude/dr-egeria-report-spec-types
Nov 7, 2026
Merged

dwolfson merged 5 commits into
odpi:mainfrom
dwolfson:claude/dr-egeria-report-spec-types

Conversation

@dwolfson

@dwolfson dwolfson commented Nov 7, 2026

Copy link
Copy Markdown
Member

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-reports regenerated the templates, help and report specs.

New commands

Command Family OM_TYPE Processor
Create/Update Report Spec Views & Reports ReportSpec CollectionManagerProcessor (added to COLLECTION_SUBTYPES; set_collection_manager_body writes microflow, targetTypeName, aliases, outputTypes, includePreamble)
Create/Update Dashboard Views & Reports Dashboard new DashboardProcessor (v2/report.py, AssetMaker path like Report)
Link/Detach Report Type Instance Views & Reports ReportTypeInstance DataDesignerLinkProcessor (ends: Report Type → Report)
Link/Detach Report Run Of Views & Reports ReportRunOf DataDesignerLinkProcessor (ends: Results Set → Report; Result State, Result State Reason, Result Location)
Create/Update Measurement Specification Data Designer MeasurementSpecification DataValueSpecificationProcessor (Completeness Declared, Confidence Form, Uncertainty Form, Absence Sentences)
Link/Detach Basis Data Field, As Of Data Field Data Designer BasisDataField / AsOfDataField DataDesignerLinkProcessor (ends: Measurement Specification → Data Field)
Create/Update Display Data Container Schema Maker DisplayDataContainer SchemaElementProcessor (Renderer, Placement Kind, Span, Presentation Style, Markdown Content)
Create/Update Display Data Field Schema Maker DisplayDataField SchemaElementProcessor (Input Field, Placement Kind, Span, Presentation Style, Markdown Content)

Presentation Style has the alias Placement Emphasis.

Changed

  • Create Report writes Egeria's typed outputFormat and reportParameters (the Report Parameters map as a JSON
    string) as well as the existing additionalProperties keys, which the Portal's local dashboards still read.
  • Output Format (shared by Create Report and View Report) now lists every format type in pyegeria's report-spec
    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 DataSetContent relationship from the
Dashboard to the Report, with queryId = the placement's qualifiedName and queryType = "placement". No new
relationship type. AssetMaker gains:

  • link_placement_report(dashboard_guid, report_guid, placement_qualified_name) (sync + async).
  • detach_placement_report(dashboard_guid, placement_qualified_name) (sync + async). DataSetContent is 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 pure resolve_placement_reports(element, names): an explicit state for every placement — bound (report GUID/name, relationship GUID), unbound (no
    link) or ambiguous (several links, all listed, none chosen), never an empty value. A dashboard that can't be read
    raises 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 Value with
property_name set, so Dr.Egeria validates it against Egeria's valid metadata values for that property when the
server 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 two
new Schema Maker commands); ReportTypeInstance from ReportType (not ReportInstanceOf from ReportSpec); ReportRunOf
is ResultsSet → Report; refreshTimeInterval, a long in minutes (not refreshSeconds). Following Egeria as shipped: no stateSet/basisField/
asOfField strings; presentationStyle (not emphasis); span a string validated by valid metadata (not ONE/TWO/FULL);
targetTypeName (not targetType); reportParameters a JSON string.
Also: the existing local Create Dashboard Sheet / Link Report to Dashboard Sheet / Add Text on Dashboard Sheet
commands are unchanged; moving them onto these Egeria elements (§8d "Migration") is not in this PR.

Checks

  • scripts/dr_egeria_attribute_consumption_audit.py for Views & Reports, Data Designer, Schema Maker: 0 findings.
  • Spec Editor POST /api/validate: structural OK, the same 28 pre-existing warnings as main.
  • validate_compact_specs against the live #9432 image (read-only type check): 0 errors. Against the
    pre-#9432 image it gave 7 OM_TYPE_INVALID, one per new type.
  • Micro-tests on Python 3.13: 2057 run, 2055 passed, 2 skipped, 0 failed. New: test_dashboard_placements.py (9),
    tests/micro-tests/test_dr_egeria_report_spec_types.py (41); test_data_designer_links.py now also covers the
    four new relationships for Link and Detach/Unlink/Remove.
  • Not yet tested live; that waits on the owner.

Not in this PR

  • Propagation of templates to egeria-workspaces-fs / trellis (the coordinator's separate PR), and processing the new
    help file into the dr-egeria glossary.

🤖 Generated with Claude Code

dwolfson and others added 5 commits November 7, 2026 20:43
…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
dwolfson marked this pull request as ready for review November 7, 2026 21:30
@dwolfson
dwolfson merged commit edbd95c into odpi:main Nov 7, 2026
6 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant