-
Notifications
You must be signed in to change notification settings - Fork 209
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
feat(DataPlaneStore): adds Cosmos implementation for DataPlaneStore #2203
Conversation
Codecov ReportBase: 64.50% // Head: 64.29% // Decreases project coverage by
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
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. |
3cb1af4
to
c6384b8
Compare
c6384b8
to
b5b36d0
Compare
|
||
public class CosmosDataPlaneStoreConfig extends AbstractCosmosConfig { | ||
|
||
@Setting |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
b5b36d0
to
6005d61
Compare
What this PR changes/adds
Adds a Cosmos implementation of
DataPlaneStore
Linked Issue(s)
Closes #2091
Checklist
no-changelog
)