Skip to content

Conversation

@zoercai
Copy link
Contributor

@zoercai zoercai commented Aug 24, 2021

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> ☕️

zoercai added 6 commits July 1, 2021 19:45
…nto json-sample

# Conflicts:
#	google-cloud-spanner/src/main/java/com/google/cloud/spanner/AbstractStructReader.java
#	google-cloud-spanner/src/main/java/com/google/cloud/spanner/StructReader.java
#	google-cloud-spanner/src/main/java/com/google/cloud/spanner/Value.java
#	google-cloud-spanner/src/test/java/com/google/cloud/spanner/ValueBinderTest.java
#	samples/snippets/src/main/java/com/example/spanner/SpannerSample.java
#	samples/snippets/src/test/java/com/example/spanner/SpannerSampleIT.java
@zoercai zoercai requested a review from a team as a code owner August 24, 2021 03:34
@product-auto-label product-auto-label bot added api: spanner Issues related to the googleapis/java-spanner API. samples Issues that are directly related to samples. labels Aug 24, 2021
@snippet-bot
Copy link

snippet-bot bot commented Aug 24, 2021

Here is the summary of changes.

You are about to add 3 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 24, 2021
@zoercai zoercai added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 24, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 24, 2021
@zoercai zoercai requested a review from olavloite August 25, 2021 10:32
Copy link
Collaborator

@olavloite olavloite left a comment

Choose a reason for hiding this comment

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

The samples look good to me, but I noticed that there are now no integration tests at all for these samples. Is that intentional? Normally we add tests for such standalone samples like this: https://github.com/googleapis/java-spanner/blob/master/samples/snippets/src/test/java/com/example/spanner/GetCommitStatsSampleIT.java

@zoercai
Copy link
Contributor Author

zoercai commented Aug 26, 2021

The samples look good to me, but I noticed that there are now no integration tests at all for these samples. Is that intentional? Normally we add tests for such standalone samples like this: https://github.com/googleapis/java-spanner/blob/master/samples/snippets/src/test/java/com/example/spanner/GetCommitStatsSampleIT.java

I added some tests to SpannerStandaloneExamplesIT.java which already contains similar tests for numeric. Happy to move them into a separate test class, let me know if you'd prefer that.

@zoercai zoercai requested a review from olavloite August 26, 2021 03:28
Copy link
Collaborator

@olavloite olavloite left a comment

Choose a reason for hiding this comment

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

LGTM

@zoercai zoercai added automerge Merge the pull request once unit tests and other checks pass. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Aug 30, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 30, 2021
@gcf-merge-on-green gcf-merge-on-green bot merged commit 0d8aa7d into googleapis:master Aug 30, 2021
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Aug 30, 2021
@zoercai zoercai deleted the json-sample branch August 30, 2021 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the googleapis/java-spanner API. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants