Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pyegeria/omvs/classification_explorer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6701,7 +6701,7 @@ async def _async_add_scope_to_element(

url = f"{self.classification_command_root}/elements/{element_guid}/scoped-by/{scoped_by_guid}/attach"

return await self._async_new_relationship_request(url, ['ScopedBy'], body)
return await self._async_new_relationship_request(url, ['ScopedByProperties'], body)

def add_scope_to_element(
self,
Expand Down Expand Up @@ -6841,7 +6841,7 @@ async def _async_add_resource_to_element(

url = f"{self.classification_command_root}/elements/{element_guid}/resource-list/{resource_guid}/attach"

return await self._async_new_relationship_request(url, ['ResourceList'], body)
return await self._async_new_relationship_request(url, ['ResourceListProperties'], body)

def add_resource_to_element(
self,
Expand Down Expand Up @@ -7240,7 +7240,7 @@ async def _async_add_more_information(

url = f"{self.classification_command_root}/elements/{element_guid}/more-information/{more_info_guid}/attach"

return await self._async_new_relationship_request(url, ['MoreInformation'], body)
return await self._async_new_relationship_request(url, ['MoreInformationProperties'], body)

def add_more_information(
self,
Expand Down
4 changes: 2 additions & 2 deletions pyegeria/omvs/time_keeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ async def _async_link_related_context_events(
```
"""
url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/time-keeper/context-events/{context_event_one_guid}/related-context-events/{context_event_two_guid}/attach"
return await self._async_new_relationship_request(url, ['ContextEventEvidence'],body)
return await self._async_new_relationship_request(url, ['RelatedContextEventProperties'],body)

def link_related_context_events(
self,
Expand Down Expand Up @@ -991,7 +991,7 @@ async def _async_link_context_event_impact(
```
"""
url = f"{self.platform_url}/servers/{self.view_server}/api/open-metadata/time-keeper/context-events/{context_event_guid}/impacts/{impacted_element_guid}/attach"
return await self._async_new_relationship_request(url, ['ContextEventImpact'],body)
return await self._async_new_relationship_request(url, ['ContextEventImpactProperties'],body)

def link_context_event_impact(
self, context_event_guid: str, impacted_element_guid: str, body: dict | NewRelationshipRequestBody
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
import pytest

from pyegeria.omvs.connection_maker import ConnectionMaker
from pyegeria.omvs.classification_explorer import ClassificationExplorer
from pyegeria.omvs.data_discovery import DataDiscovery
from pyegeria.omvs.time_keeper import TimeKeeper


class _Response:
Expand Down Expand Up @@ -46,6 +48,13 @@ async def fake_make_request(method, url, body=None, *args, **kwargs):
(DataDiscovery, "_async_link_resource_profile_data", "ResourceProfileDataProperties"),
(DataDiscovery, "_async_link_annotation_match", "AnnotationMatchProperties"),
(DataDiscovery, "_async_link_request_for_action_target", "RequestForActionTargetProperties"),
# 2026-11-07: ScopedBy refused live (HTTP 400 "Could not resolve type id 'ScopedBy'") on the
# Trellis perspective migration; the same bare-name pattern was in four more methods.
(ClassificationExplorer, "_async_add_scope_to_element", "ScopedByProperties"),
(ClassificationExplorer, "_async_add_resource_to_element", "ResourceListProperties"),
(ClassificationExplorer, "_async_add_more_information", "MoreInformationProperties"),
(TimeKeeper, "_async_link_related_context_events", "RelatedContextEventProperties"),
(TimeKeeper, "_async_link_context_event_impact", "ContextEventImpactProperties"),
]


Expand Down
Loading