Skip to content

fix(sdk): send the name as filter_string in three get_*_by_name methods - #398

Merged
dwolfson merged 1 commit into
odpi:mainfrom
dwolfson:fix/schema-maker-get-by-name
Sep 29, 2026
Merged

dwolfson merged 1 commit into
odpi:mainfrom
dwolfson:fix/schema-maker-get-by-name

Conversation

@dwolfson

Copy link
Copy Markdown
Member

Summary

SchemaMaker.get_schema_types_by_name, SchemaMaker.get_schema_attributes_by_name and DataDiscovery.get_analysis_reports_by_name passed the name to _async_get_name_request as name=, but the helper's parameter is filter_string. The name fell into **kwargs, so the request went out with a null filter and Egeria rejected every call:

OPEN-METADATA-400-004 The name passed on the name parameter of the getSchemaTypesByName operation is null

The fix changes name=name to filter_string=name in each of the three calls.

Test plan

  • New tests/micro-tests/test_get_by_name_filter_string.py covers all three methods. It fails without the fix and passes with it.
  • 719 micro-tests pass
  • Live: the fixed get_schema_types_by_name found a test schema type by qualified name on a local Egeria server, where the unfixed version raised the error above.

🤖 Generated with Claude Code

SchemaMaker.get_schema_types_by_name, SchemaMaker.get_schema_attributes_by_name
and DataDiscovery.get_analysis_reports_by_name passed the name to
_async_get_name_request as name=, but the helper's parameter is filter_string.
The name fell into **kwargs and the request went out with a null filter, so
Egeria rejected every call (OPEN-METADATA-400-004 "The name passed on the name
parameter of the getSchemaTypesByName operation is null"). Found live while
cleaning up after verifying Link Schema Type Definition; the fixed
get_schema_types_by_name was then used to find and delete the test schema type.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson merged commit 0db0aa8 into odpi:main Sep 29, 2026
5 checks passed
dwolfson added a commit that referenced this pull request Sep 29, 2026
Release carrying the create-from-template deepCopy fix and the other request
defaults aligned with Egeria (#399), and the get_*_by_name filter_string fix
(#398).

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson deleted the fix/schema-maker-get-by-name branch October 5, 2026 00:40
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