Skip to content

feat: move transfer initiate into command handler#5579

Merged
ndr-brt merged 1 commit intoeclipse-edc:mainfrom
Think-iT-Labs:5573-move-initiate-out-manager
Mar 20, 2026
Merged

feat: move transfer initiate into command handler#5579
ndr-brt merged 1 commit intoeclipse-edc:mainfrom
Think-iT-Labs:5573-move-initiate-out-manager

Conversation

@ndr-brt
Copy link
Copy Markdown
Member

@ndr-brt ndr-brt commented Mar 20, 2026

What this PR changes/adds

Moved TransferProcess initiate method into command handler.

Why it does that

move logic out of managers

Further notes

  • the TransferRequest message allowed custom id to be used, I guess for a point in time in which this was useful, but, to align with the ContractRequest that doesn't permit that, I just removed its evaluation, and the id is automatically generated by the system. This permitted to avoid looking for duplicates, plus, there's no real reason to maintain externally generated ids.
  • there will be a subsequent refactoring to remove the CommandResult content as it was introduced in refactor: move negotiation initialize logic into command handler #5576 to get the job done, but actually the information that's needed by the service layer (entity id and createdAt) are already available there, and the command should stay without content, for sake of simplicity

Who will sponsor this feature?

Please @-mention the committer that will sponsor your feature.

Linked Issue(s)

Closes #5573

Please be sure to take a look at the contributing guidelines and our etiquette for pull requests.

@ndr-brt ndr-brt requested a review from a team as a code owner March 20, 2026 09:21
@ndr-brt ndr-brt added the refactoring Cleaning up code and dependencies label Mar 20, 2026
@ndr-brt ndr-brt force-pushed the 5573-move-initiate-out-manager branch from f0c3653 to d7c9867 Compare March 20, 2026 09:31
.dataplaneMetadata(transferRequest.getDataplaneMetadata())
.build();

var dataAddressStorage = Optional.ofNullable(transferRequest.getDataDestination())

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
TransferRequest.getDataDestination
should be avoided because it has been deprecated.
@ndr-brt ndr-brt merged commit d8421a6 into eclipse-edc:main Mar 20, 2026
32 of 33 checks passed
@ndr-brt ndr-brt deleted the 5573-move-initiate-out-manager branch March 20, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Cleaning up code and dependencies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: move Transfer initialization into service

3 participants