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(DataPlaneStore): adds Cosmos implementation for DataPlaneStore #2203

Conversation

wolf4ood
Copy link
Contributor

What this PR changes/adds

Adds a Cosmos implementation of DataPlaneStore

Linked Issue(s)

Closes #2091

Checklist

  • added appropriate tests?
  • performed checkstyle check locally?
  • added/updated copyright headers?
  • documented public classes/methods?
  • added/updated relevant documentation?
  • assigned appropriate label? (exclude from changelog with label no-changelog)
  • formatted title correctly? (take a look at the CONTRIBUTING and Etiquette for pull requests for details)

@wolf4ood wolf4ood self-assigned this Nov 14, 2022
@github-actions github-actions bot added this to In progress in Connector Nov 14, 2022
@wolf4ood wolf4ood added the enhancement New feature or request label Nov 14, 2022
@wolf4ood wolf4ood temporarily deployed to Azure-dev November 14, 2022 14:16 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Nov 14, 2022

Codecov Report

Base: 64.50% // Head: 64.29% // Decreases project coverage by -0.20% ⚠️

Coverage data is based on head (6005d61) compared to base (fee1c95).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2203      +/-   ##
==========================================
- Coverage   64.50%   64.29%   -0.21%     
==========================================
  Files         843      847       +4     
  Lines       17545    17602      +57     
  Branches     1087     1089       +2     
==========================================
  Hits        11317    11317              
- Misses       5780     5837      +57     
  Partials      448      448              
Impacted Files Coverage Δ
...r/dataplane/store/cosmos/CosmosDataPlaneStore.java 0.00% <0.00%> (ø)
...plane/store/cosmos/CosmosDataPlaneStoreConfig.java 0.00% <0.00%> (ø)
...ne/store/cosmos/CosmosDataPlaneStoreExtension.java 0.00% <0.00%> (ø)
...ne/store/cosmos/model/DataFlowRequestDocument.java 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@wolf4ood wolf4ood force-pushed the feature/2091_dataplane_store_cosmos branch from 3cb1af4 to c6384b8 Compare November 14, 2022 15:47
@wolf4ood wolf4ood temporarily deployed to Azure-dev November 14, 2022 15:48 Inactive
@wolf4ood wolf4ood force-pushed the feature/2091_dataplane_store_cosmos branch from c6384b8 to b5b36d0 Compare November 14, 2022 15:57
@wolf4ood wolf4ood temporarily deployed to Azure-dev November 14, 2022 15:57 Inactive
@wolf4ood wolf4ood marked this pull request as ready for review November 14, 2022 16:21

public class CosmosDataPlaneStoreConfig extends AbstractCosmosConfig {

@Setting
Copy link
Member

Choose a reason for hiding this comment

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

nit: should use the attributes to add more documentation

var cosmosDbApi = new CosmosDbApiImpl(configuration, client);
var store = new CosmosDataPlaneStore(cosmosDbApi, typeManager.getMapper(), retryPolicy, configuration.getPartitionKey(), clock);

context.registerService(DataPlaneStore.class, store);
Copy link
Member

Choose a reason for hiding this comment

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

could use a @Provider method for this?

Copy link
Member

@paullatzelsperger paullatzelsperger left a comment

Choose a reason for hiding this comment

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

LGTM

Connector automation moved this from In progress to Review in progress Nov 18, 2022
@wolf4ood wolf4ood force-pushed the feature/2091_dataplane_store_cosmos branch from b5b36d0 to 6005d61 Compare November 18, 2022 08:59
@wolf4ood wolf4ood temporarily deployed to Azure-dev November 18, 2022 08:59 Inactive
@wolf4ood wolf4ood temporarily deployed to Azure-dev November 18, 2022 08:59 Inactive
@paullatzelsperger paullatzelsperger merged commit 6bc8435 into eclipse-edc:main Nov 21, 2022
Connector automation moved this from Review in progress to Done Nov 21, 2022
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
No open projects
Connector
  
Done
Development

Successfully merging this pull request may close these issues.

Persistent DataPlaneStore - CosmosDB extension
4 participants