Repository navigation
fix(metadata-expert): pass report_spec through the four find methods exec_report_spec uses - #543
Merged
dwolfson merged 2 commits intoNov 7, 2026
Conversation
The four MetadataExpert find methods (find_metadata_elements_with_string, find_elements_for_anchor, find_elements_in_anchor_domain, find_elements_in_anchor_scope) hardcoded report_spec=None in their _async_find_request call while also forwarding **kwargs. exec_report_spec always adds report_spec to the call, so every report spec backed by one of them (40 registered specs, e.g. Report-DrE-Basic) failed with "got multiple values for keyword argument 'report_spec'". Each method now takes report_spec explicitly and passes it on, so the spec's own columns are used for non-JSON output. The new micro-test runs every registered spec naming find_metadata_elements_with_string through exec_report_spec, plus each of the four sync methods directly, against the real client with only _async_make_request faked. 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.
Fixes
exec_report_specfor every report spec backed byMetadataExpertfind methods. Before this fix they all failed withTypeError: ... got multiple values for keyword argument 'report_spec'.Cause. In
pyegeria/omvs/metadata_expert.py, four find methods passedreport_spec=Noneto_async_find_requestand also forwarded**kwargs.exec_report_specalways suppliesreport_spec, so the argument arrived twice. The four methods:find_metadata_elements_with_stringfind_elements_for_anchorfind_elements_in_anchor_domainfind_elements_in_anchor_scopeFix. Each of the four now takes
report_specas a named parameter and passes it on. As a result, the spec's own columns are now also used for non-JSON output; before, they were dropped.Test.
tests/micro-tests/test_metadata_expert_report_spec_kwarg.pyuses the realMetadataExpertclass with only_async_make_requestfaked. It:find_metadata_elements_with_stringthroughexec_report_spec,Report-DrE-Basicamong them;report_specstays out of the request body.Without the fix it fails with the exact TypeError; with it, all 45 cases pass. The full micro-test suite on 3.13 gives 1858 passed and 1 skipped.
Found during the #541 live test. The test scans the spec registry, so it will also cover
Dashboard-DrE-BasicandDashboardsonce #541 merges.🤖 Generated with Claude Code