Skip to content

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
wants to merge 16 commits into
base: nodejs-transaction-change-run
Choose a base branch
from

Conversation

danieljbruce
Copy link
Owner

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:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

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
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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant