-
Notifications
You must be signed in to change notification settings - Fork 30
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
Implement Stream Transaction Api. #323
Implement Stream Transaction Api. #323
Conversation
5264cfd
to
d4afd34
Compare
ba4ef23
to
1ae7d18
Compare
Stream Transactions are now working as expected. Added good number of cases to test each scenarios. Let me know if anything is missing. |
3b34da2
to
2ed04e2
Compare
Added stream transaction support to,
|
1bdf307
to
587b9ee
Compare
For Arango 3.4, filter and exclude the StreamTransaction tests using Xunit Trait. fix ArangoDB-Community#322
587b9ee
to
e5ac8eb
Compare
Only TransctionApi changes are now in the PR. |
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.
@DiscJockeyDJ Thank you for this pull request. I spotted a few things which I think should be addressed before merging. Happy to discuss any of them.
Added commit to address the above suggestions 👍 |
Refactored the TransactionApiClient and its test class. Created a new class StreamTransactionResponse. fix ArangoDB-Community#322
c7e2aff
to
2455685
Compare
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.
Thank you for the update. I left another batch of comments which I think are worth addressing before merging, though most of them are fairly minor.
The pull request look good overall, this is a great addition. Looking forward to get it merged 👍
arangodb-net-standard/TransactionApi/Models/StreamTransactionResponse.cs
Outdated
Show resolved
Hide resolved
arangodb-net-standard/TransactionApi/Models/StreamTransactionBody.cs
Outdated
Show resolved
Hide resolved
arangodb-net-standard/TransactionApi/Models/PostTransactionBody.cs
Outdated
Show resolved
Hide resolved
arangodb-net-standard/TransactionApi/Models/StreamTransactionResult.cs
Outdated
Show resolved
Hide resolved
arangodb-net-standard.Test/TransactionApi/TransactionApiClientTest.cs
Outdated
Show resolved
Hide resolved
arangodb-net-standard.Test/TransactionApi/TransactionApiClientTest.cs
Outdated
Show resolved
Hide resolved
Refactored TransactionApiClientTest and StreamTransactionBody class. fix ArangoDB-Community#322
Added commit to address the above suggestions 👍 |
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.
@DiscJockeyDJ Thanks for the update. Looks good to me.
Implemented the Stream Transaction Api using the documentation from Arangodb
https://www.arangodb.com/docs/3.6/http/transaction-stream-transaction.html
Even though the API calls work, the collections gets updated once the transactions begins (or) before committing/aborting.
Added few test cases to check that.