-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add a TokenStore
implementation for CosmosDB
#1
Conversation
TokenStore
implementation for CosmosDB
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.
My comments can be broken down in roughly two groups:
- Project basis missers. As stated in a comment, would've been nice to do these in a separate PR.
- Questions and concerns around the
CosmosTokenStore
.
...in/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStore.java
Outdated
Show resolved
Hide resolved
...in/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStore.java
Outdated
Show resolved
Hide resolved
...nframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStoreIntegrationTest.java
Show resolved
Hide resolved
...nframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStoreIntegrationTest.java
Outdated
Show resolved
Hide resolved
...nframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStoreIntegrationTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Steven van Beelen <[email protected]>
…he readme based on the review.
5636c80
to
9c4e757
Compare
I addressed most points, but two are still open. |
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.
Another, yet smaller, bunch of comments. It's definitely shaping up 👍
...in/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStore.java
Outdated
Show resolved
Hide resolved
...in/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStore.java
Outdated
Show resolved
Hide resolved
...in/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStore.java
Outdated
Show resolved
Hide resolved
...ain/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenItem.java
Outdated
Show resolved
Hide resolved
.../axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStoreBuilderTest.java
Show resolved
Hide resolved
...in/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStore.java
Outdated
Show resolved
Hide resolved
...in/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStore.java
Show resolved
Hide resolved
...in/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStore.java
Outdated
Show resolved
Hide resolved
...nframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStoreIntegrationTest.java
Show resolved
Hide resolved
Co-authored-by: Steven van Beelen <[email protected]>
…rent container for each processing group.
Changed the implementation so one token store instance is only using one container, and thus uses a query for the cases where it needs to list for processor name. |
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.
Some very minor things remaining!
...ain/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenItem.java
Outdated
Show resolved
Hide resolved
...ain/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenItem.java
Outdated
Show resolved
Hide resolved
...ain/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenItem.java
Show resolved
Hide resolved
...in/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenStore.java
Outdated
Show resolved
Hide resolved
...ain/java/org/axonframework/extensions/cosmosdb/eventsourcing/tokenstore/CosmosTokenItem.java
Outdated
Show resolved
Hide resolved
Quality Gate failedFailed conditions 10.2% Coverage on New Code (required ≥ 80%) |
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.
All my concerns have been addressed, hence approving!
It seems like for the integration tests, we are blocked by Azure/azure-cosmos-db-emulator-docker#56. I also don't want to use an unsupported ubuntu.. Maybe put the integration test behind a profile, so the tests do complete for now?