Repository navigation
feat(omvs): client support for Egeria 6.3 report specs, measurements and dashboards - #540
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>
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>
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.
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, theBasisDataField/AsOfDataField/ReportTypeInstance/ReportRunOfrelationships, and placement attributes onDisplayDataContainer/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 callerpasses is kept, not silently dropped.
collection_manager.ReportSpecProperties(beside its parentReportTypeProperties).schema_maker.DisplayDataContainerProperties/DisplayDataFieldProperties(besideSchemaAttributeProperties).Create / update paths
DataDesigner.create_data_value_specification/update_data_value_specification, with properties classMeasurementSpecificationProperties(accepted class listnow names DataValueSpecification/DataClass/DataGrain/MeasurementSpecification properties; it was the bare type name
DataValueSpecification, which nothing checked).CollectionManager.create_report_spec(sync + async). Why a new method rather thancreate_report_type_collection: that method's no-body path hard-codesReportTypePropertiesand aReportType::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, buildsReportSpecPropertieswith aReportSpec::name, and keeps an explicitinclude_preamble=False. Update is the existingupdate_collection(
ReportSpecPropertiesadded toCOLLECTION_PROPERTIES_LIST).AssetMaker.create_asset(["DashboardProperties"], body)/update_asset, asCreate Reportalready does for Report.(
create_asset,SchemaMaker.create_schema_attribute/update_schema_attribute) already pass the properties dictthrough; the models above declare the new fields.
Four link/detach pairs (
omvs/data_designer.py, sync +_async_)link_/detach_basis_data_field(measurement_spec_guid, data_field_guid)/data-value-specifications/{ms}/basis-data-fields/{df}/attach|detachBasisDataFieldPropertieslink_/detach_as_of_data_field(measurement_spec_guid, data_field_guid)/data-value-specifications/{ms}/as-of-data-fields/{df}/…AsOfDataFieldPropertieslink_/detach_report_type_instance(report_type_guid, report_guid)/report-types/{rt}/report-type-instances/{report}/…ReportTypeInstancePropertieslink_/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.
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.
DashboardPlacementtype (Egeria design, accepted by the owner 2026-11-07). Placement attributes (placementKind,span,presentationStyle,markdownContent) are onDisplayDataField(a leaf placement) and onDisplayDataContainer(a nested sheet,which also gains
renderer).ReportTypeInstancestarts atReportType(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 hadReportInstanceOffromReportSpec.ReportRunOfrunsResultsSet→Report(end 1 ResultsSet; Egeria design, accepted by the owner 2026-11-07, chosen for lineage display); the note hadReport→ResultsSet.refreshTimeInterval, a long in minutes (Egeria design, accepted by the owner 2026-11-07) (Egeria's existingREFRESH_TIME_INTERVALproperty: "how frequently the processing should run - in minutes"); the note had
refreshSeconds(int, seconds).stateSet,basisField,asOfFieldstrings: the state set is aValidValuesAssignment(strictRequirement true), basis and as-of are theBasisDataField/AsOfDataFieldrelationships (owner's decision).
presentationStyle(note:emphasis), andspanis a free string (example "2"),not the note's ONE · TWO · FULL enum; the allowed values are valid metadata.
ReportSpec's target property istargetTypeName(note:targetType);outputTypesis array.Report.reportParametersis a JSON string (note:formula/formulaType=report-parameters/1, or a map).basisDataField/asOfDataField; ReportType seesreportTypeInstances, Report seesderivedFromReportTypeandusesResultsSets,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).
scripts/omvs_audit.py --java-dir <egeria @ b052c0b1>with the PR's Data Designer.http: no findings in the newmethods or models.
🤖 Generated with Claude Code