Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduces properties provider for DataFlowStartMessage #4044

Merged

Conversation

wolf4ood
Copy link
Contributor

@wolf4ood wolf4ood commented Mar 25, 2024

What this PR changes/adds

Allows adding additional/custom properties when sending the DataFlowStartMessage with the DPS protocol

A default provider is created, which returns an empty map

Why it does that

extensibility

Further notes

List other areas of code that have changed but are not necessarily linked to the main feature. This could be method
signature changes, package declarations, bugs that were encountered and were fixed inline, etc.

Linked Issue(s)

Closes #4043

@wolf4ood wolf4ood self-assigned this Mar 25, 2024
@wolf4ood wolf4ood added the enhancement New feature or request label Mar 25, 2024
@wolf4ood wolf4ood force-pushed the feat/4043_dps_custom_properties_extensions branch from 9441a66 to 6169d80 Compare March 25, 2024 16:48
@wolf4ood wolf4ood force-pushed the feat/4043_dps_custom_properties_extensions branch from 6169d80 to b6e6b4b Compare March 25, 2024 16:49
@wolf4ood wolf4ood marked this pull request as ready for review March 25, 2024 16:59
@ExtensionPoint
public interface DataFlowPropertiesProvider {

StatusResult<Map<String, String>> propertiesFor(TransferProcess transferProcess, Policy policy);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'transferProcess' is never used.
@ExtensionPoint
public interface DataFlowPropertiesProvider {

StatusResult<Map<String, String>> propertiesFor(TransferProcess transferProcess, Policy policy);

Check notice

Code scanning / CodeQL

Useless parameter Note

The parameter 'policy' is never used.
@wolf4ood wolf4ood merged commit 8725718 into eclipse-edc:main Mar 26, 2024
16 checks passed
@wolf4ood wolf4ood deleted the feat/4043_dps_custom_properties_extensions branch March 26, 2024 08:29
@@ -350,4 +315,63 @@ private TransferProcess.Builder transferProcessBuilder() {
.counterPartyAddress("test.connector.address")
.dataDestination(DataAddress.Builder.newInstance().type("test").build());
}

@Nested
class Suspend {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was late for review, but why put tests under private methods? Doesn't look correct

Copy link
Contributor Author

@wolf4ood wolf4ood Mar 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which tests are private?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DPS: extensions points to enrich DataFlowStartMessage
3 participants