Skip to content

feat: use ObjectServiceMapperAdapter from OpenRegister - #723

Merged
bbrands02 merged 2 commits into
developmentfrom
feat/object-service-mapper-adapter
Apr 23, 2026
Merged

feat: use ObjectServiceMapperAdapter from OpenRegister#723
bbrands02 merged 2 commits into
developmentfrom
feat/object-service-mapper-adapter

Conversation

@bbrands02

Copy link
Copy Markdown
Contributor

Summary

  • Updates EndpointService to reference ObjectServiceMapperAdapter from OpenRegister
  • Removes the app-specific type hint that tied the contract to OpenConnector internals
  • No logic changes — follow-up to the new adapter being added in OpenRegister

Changes

  • lib/Service/EndpointService.php: Updated union type hints on 4 method signatures to use \OCA\OpenRegister\Service\ObjectServiceMapperAdapter

Related

Depends on openregister#1335 which adds the ObjectServiceMapperAdapter class.

Test plan

  • Verify EndpointService resolves ObjectServiceMapperAdapter correctly after the OpenRegister PR is merged
  • Run existing endpoint tests to confirm no regressions

🤖 Generated with Claude Code

OpenRegister renamed OpenConnectorObjectMapperAdapter to ObjectServiceMapperAdapter
to reflect that the adapter is not OpenConnector-specific and can be used by
any external app. Updated the four type hint references in EndpointService accordingly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ObjectServiceMapperAdapter::find() accepts both IDs and UUIDs, making
findByUuid a redundant alias. Use find() directly.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@bbrands02
bbrands02 merged commit 739965e into development Apr 23, 2026
2 of 12 checks passed
@rubenvdlinde
rubenvdlinde deleted the feat/object-service-mapper-adapter branch May 22, 2026 12:55
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.

2 participants