forked from googleapis/nodejs-datastore
-
Notifications
You must be signed in to change notification settings - Fork 0
Nodejs transaction redesign feature branch 2 adding commit #2
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
Open
danieljbruce
wants to merge
16
commits into
nodejs-transaction-change-run
Choose a base branch
from
nodejs-transaction-redesign-feature-branch-2-adding-commit
base: nodejs-transaction-change-run
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Nodejs transaction redesign feature branch 2 adding commit #2
danieljbruce
wants to merge
16
commits into
nodejs-transaction-change-run
from
nodejs-transaction-redesign-feature-branch-2-adding-commit
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The internals of commit should be moved to a new function. This way we can sandwich a commit async call between commit and runCommitAsync.
Commit tests added to ensure that commit behaves the same way as before.
The tests should pass before we make changes to commit.
One of the mocks does not need to be written twice
…t-tests' of https://github.com/danieljbruce/nodejs-datastore into nodejs-transaction-redesign-feature-branch-2-adding-commit
This is going to be a useful test for mocking out various layers to make sure they work the same way as before.
The mocked transaction wrapper should reset all mocked gapic functions and not have to be told which ones to reset.
Gapic mocked tests for run aggregation query need to be written that use the mock transaction object.
The runQuery tests are finished so we can use this to take apart the function from end to end.
The get tests now make sure that the data coming back from the gapic layer results in the same values for users.
try/catch logic in the test suite is added so that errors bubble up to the test runner and it is easier to see why tests failed
…nieljbruce/nodejs-datastore into nodejs-transaction-redesign-feature-branch-1a-add-commit-tests
…t-tests' of https://github.com/danieljbruce/nodejs-datastore into nodejs-transaction-redesign-feature-branch-2-adding-commit # Conflicts: # src/transaction.ts
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕