Skip to content

Conversation

danieljbruce
Copy link
Contributor

Description

This PR is a follow-up to the PR #1369 which adds datastore transforms support when the user does datastore.save. It turns out that for saves with transactions no further source code changes are required because transactions call the save method so this PR simply adds some tests for transactions that save with transforms.

Impact

Ensures datastore transforms work with transactions

Testing

Added tests where datastore transforms work with transactions.

@danieljbruce danieljbruce requested review from a team as code owners September 15, 2025 14:27
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: datastore Issues related to the googleapis/nodejs-datastore API. labels Sep 15, 2025
@@ -0,0 +1,42 @@
// Copyright 2025 Google LLC
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file provides a mocked version of datastore that collects outgoing requests so that we can look at those requests in assert statements.

daniel-sanche
daniel-sanche previously approved these changes Sep 15, 2025
Copy link

@daniel-sanche daniel-sanche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Base automatically changed from 404540305-datastore-mode-data-transforms to main September 15, 2025 20:22
@danieljbruce danieljbruce dismissed daniel-sanche’s stale review September 15, 2025 20:22

The base branch was changed.

…into fix-transaction-spy

# Conflicts:
#	system-test/datastore.ts
@product-auto-label product-auto-label bot added size: xl Pull request size is extra large. and removed size: l Pull request size is large. labels Sep 15, 2025
@danieljbruce danieljbruce added the automerge Merge the pull request once unit tests and other checks pass. label Sep 15, 2025
@gcf-merge-on-green gcf-merge-on-green bot merged commit a885448 into main Sep 15, 2025
19 of 20 checks passed
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Sep 15, 2025
@gcf-merge-on-green gcf-merge-on-green bot deleted the fix-transaction-spy branch September 15, 2025 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the googleapis/nodejs-datastore API. size: xl Pull request size is extra large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants