Skip to content

feat(omvs): client support for Egeria 6.3 report specs, measurements and dashboards - #540

Merged
dwolfson merged 1 commit into
odpi:mainfrom
dwolfson:claude/report-spec-types-804227
Nov 7, 2026
Merged

dwolfson merged 1 commit into
odpi:mainfrom
dwolfson:claude/report-spec-types-804227

Conversation

@dwolfson

@dwolfson dwolfson commented Nov 7, 2026

Copy link
Copy Markdown
Member

pyegeria client support for Egeria 6.3 report specs, measurements and dashboards (odpi/egeria#9432)

Egeria's #9432 (b052c0b1, merged 2026-11-07) added ReportSpec, MeasurementSpecification, Dashboard, the
BasisDataField / AsOfDataField / ReportTypeInstance / ReportRunOf relationships, and placement attributes on
DisplayDataContainer / DisplayDataField. This PR is the pyegeria API side. Dr.Egeria commands come in a follow-up PR.

Properties models (class = the Java bean name exactly, the #537 lesson)

  • pyegeria.models: DataValueSpecificationProperties, MeasurementSpecificationProperties, DataSetProperties,
    ReportProperties (+ outputFormat, reportParameters), DashboardProperties, LabeledRelationshipProperties,
    BasisDataFieldProperties, AsOfDataFieldProperties, ReportTypeInstanceProperties, ReportRunOfProperties.
    The DataSet family only declares DataSet-level fields, so it uses extra='allow': any other Asset field a caller
    passes is kept, not silently dropped.
  • collection_manager.ReportSpecProperties (beside its parent ReportTypeProperties).
  • schema_maker.DisplayDataContainerProperties / DisplayDataFieldProperties (beside SchemaAttributeProperties).

Create / update paths

  • MeasurementSpecification: the existing DataDesigner.create_data_value_specification /
    update_data_value_specification, with properties class MeasurementSpecificationProperties (accepted class list
    now names DataValueSpecification/DataClass/DataGrain/MeasurementSpecification properties; it was the bare type name
    DataValueSpecification, which nothing checked).
  • ReportSpec: new CollectionManager.create_report_spec (sync + async). Why a new method rather than
    create_report_type_collection: that method's no-body path hard-codes ReportTypeProperties and a ReportType::
    qualified-name prefix and has no arguments for the spec's own properties. The new one takes microflow,
    target_type_name, aliases, output_types, include_preamble, builds ReportSpecProperties with a
    ReportSpec:: name, and keeps an explicit include_preamble=False. Update is the existing update_collection
    (ReportSpecProperties added to COLLECTION_PROPERTIES_LIST).
  • Dashboard: the existing asset path, AssetMaker.create_asset(["DashboardProperties"], body) /
    update_asset, as Create Report already does for Report.
  • Report / DisplayDataContainer / DisplayDataField new attributes: their existing create/update methods
    (create_asset, SchemaMaker.create_schema_attribute/update_schema_attribute) already pass the properties dict
    through; the models above declare the new fields.

Four link/detach pairs (omvs/data_designer.py, sync + _async_)

Method URL (data-designer) Properties class
link_/detach_basis_data_field(measurement_spec_guid, data_field_guid) /data-value-specifications/{ms}/basis-data-fields/{df}/attach|detach BasisDataFieldProperties
link_/detach_as_of_data_field(measurement_spec_guid, data_field_guid) /data-value-specifications/{ms}/as-of-data-fields/{df}/… AsOfDataFieldProperties
link_/detach_report_type_instance(report_type_guid, report_guid) /report-types/{rt}/report-type-instances/{report}/… ReportTypeInstanceProperties
link_/detach_report_run_of(results_set_guid, report_guid) /results-sets/{rs}/report-runs/{report}/… ReportRunOfProperties (resultState, resultStateReason, resultLocation)

Output side

  • equivalentSchemaType(s) / equivalentSchemaAttribute(s): no reader of either spelling in pyegeria, the Portal
    (egeria-workspaces-fs) or trellis (grep, 2026-11-07), so nothing to change; columns render relationship lists by key.
  • New hand-maintained report specs: Report-Specs (find_collections, subtype ReportSpec), Measurement-Specifications
    (find_data_value_specifications, subtype MeasurementSpecification), Dashboards (find_metadata_elements_with_string,
    type Dashboard). Generated *-DrE-* specs come with the Dr.Egeria commands in PR-2.

Differences from the design note (report-spec-pipeline-model.md §8a–8d) — this PR follows Egeria

Items 1–4 are Egeria design, accepted by the owner 2026-11-07. Items 5–9 follow Egeria as shipped.

  1. No DashboardPlacement type (Egeria design, accepted by the owner 2026-11-07). Placement attributes (placementKind, span, presentationStyle,
    markdownContent) are on DisplayDataField (a leaf placement) and on DisplayDataContainer (a nested sheet,
    which also gains renderer).
  2. ReportTypeInstance starts at ReportType (Egeria design, accepted by the owner 2026-11-07: a ReportSpec is a ReportType, so it applies, more generally) (any ReportType, a ReportSpec included); the note had
    ReportInstanceOf from ReportSpec.
  3. ReportRunOf runs ResultsSet → Report (end 1 ResultsSet; Egeria design, accepted by the owner 2026-11-07, chosen for lineage display); the note had Report → ResultsSet.
  4. Dashboard refresh is refreshTimeInterval, a long in minutes (Egeria design, accepted by the owner 2026-11-07) (Egeria's existing REFRESH_TIME_INTERVAL
    property: "how frequently the processing should run - in minutes"); the note had refreshSeconds (int, seconds).
  5. MeasurementSpecification has no stateSet, basisField, asOfField strings: the state set is a
    ValidValuesAssignment (strictRequirement true), basis and as-of are the BasisDataField / AsOfDataField
    relationships (owner's decision).
  6. Placement emphasis is presentationStyle (note: emphasis), and span is a free string (example "2"),
    not the note's ONE · TWO · FULL enum; the allowed values are valid metadata.
  7. ReportSpec's target property is targetTypeName (note: targetType); outputTypes is array.
  8. Report.reportParameters is a JSON string (note: formula/formulaType = report-parameters/1, or a map).
  9. The relationship end names as Egeria shipped them: MeasurementSpecification sees basisDataField /
    asOfDataField; ReportType sees reportTypeInstances, Report sees derivedFromReportType and usesResultsSets,
    ResultsSet sees usedInReports.

Tests

  • tests/micro-tests/test_report_spec_types.py: 37 tests, fakes only (models' class strings, serialization incl.
    explicit False and kept extra Asset fields, each link/detach URL + default properties class, ReportRunOf state,
    MeasurementSpecification create/update, create_report_spec both ways, Dashboard via asset-maker, DDC via
    schema-maker, report-spec registration).
  • Full micro-tests on Python 3.13: 1991 run, 1989 passed, 2 skipped, 0 failed.
  • scripts/omvs_audit.py --java-dir <egeria @ b052c0b1> with the PR's Data Designer .http: no findings in the new
    methods or models.
  • Not yet tested live: the platform still runs the pre-#9432 image.

🤖 Generated with Claude Code

…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>
@dwolfson
dwolfson merged commit b136992 into odpi:main Nov 7, 2026
6 checks passed
dwolfson added a commit to dwolfson/egeria-python that referenced this pull request Nov 7, 2026
Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
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>
@dwolfson
dwolfson deleted the claude/report-spec-types-804227 branch November 20, 2026 19:14
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