Skip to content

fix(omvs): five link methods named a properties class Egeria lacks - #537

Merged
dwolfson merged 1 commit into
odpi:mainfrom
dwolfson:fix/scoped-by-properties
Nov 7, 2026
Merged

dwolfson merged 1 commit into
odpi:mainfrom
dwolfson:fix/scoped-by-properties

Conversation

@dwolfson

@dwolfson dwolfson commented Nov 7, 2026

Copy link
Copy Markdown
Member

When no body is given, _async_new_relationship_request sends {"properties": {"class": prop[0]}}. These five methods passed a bare relationship type name, or the wrong class, so Egeria refused the default body. This is the same pattern as ISSUE-111.

  • ClassificationExplorer.add_scope_to_element: ScopedBy → ScopedByProperties. Seen live on 2026-11-07: HTTP 400, "Could not resolve type id 'ScopedBy'". It blocked the Trellis perspective migration.
  • ClassificationExplorer.add_resource_to_element: ResourceList → ResourceListProperties.
  • ClassificationExplorer.add_more_information: MoreInformation → MoreInformationProperties.
  • TimeKeeper.link_related_context_events: ContextEventEvidenceProperties → RelatedContextEventProperties, which matches its own docstring and URL.
  • TimeKeeper.link_context_event_impact: ContextEventImpact → ContextEventImpactProperties.

Egeria's own list of accepted type names, from that HTTP 400 error, includes each of the Properties names.

The ISSUE-111 micro-test gains the five cases. Micro-tests on 3.13: 1,842 collected, 0 failed.

There's no version bump: the owner wants to collect more fixes before the next release.

🤖 Generated with Claude Code

With body=None, _async_new_relationship_request sends
{"properties": {"class": prop[0]}}. These methods passed a bare relationship
type name (or the wrong class), so the default body was refused:

- ClassificationExplorer.add_scope_to_element: ScopedBy -> ScopedByProperties
  (seen live 2026-11-07: HTTP 400 "Could not resolve type id 'ScopedBy'")
- ClassificationExplorer.add_resource_to_element: ResourceList -> ResourceListProperties
- ClassificationExplorer.add_more_information: MoreInformation -> MoreInformationProperties
- TimeKeeper.link_related_context_events: ContextEventEvidenceProperties ->
  RelatedContextEventProperties (its own docstring and URL are the related-events link)
- TimeKeeper.link_context_event_impact: ContextEventImpact -> ContextEventImpactProperties

Egeria's known-type list (from the 400 above) has each Properties name.
The ISSUE-111 test gains the five cases. Micro-tests on 3.13: 1842, 0 failed.

Signed-off-by: Dan Wolfson <dan.wolfson@pdr-associates.com>
@dwolfson
dwolfson merged commit 21e5a10 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>
@dwolfson
dwolfson deleted the fix/scoped-by-properties 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