GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Datastore Concepts snippets and Getting Started app by ajkannan · Pull Request #90 · GoogleCloudPlatform/java-docs-samples

Conversation

@ajkannan

@ajkannan ajkannan commented Feb 10, 2016

Copy link
Copy Markdown
Contributor

/cc @pcostell @aozarov

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Ajay Kannan
Initial commit for datastore concepts snippets and getting started sa…
43fa63e
…mple app.
@ajkannan
ajkannan force-pushed the datastore-samples branch from b795324 to 43fa63e Compare February 10, 2016 16:29
pcostell
pcostell reviewed Feb 10, 2016
View reviewed changes
Comment thread datastore/src/main/java/com/google/datastore/snippets/Concepts.java Outdated
.set("priority", 5)
.set("description", "Integrate Cloud Datastore")
.build();
// [START batch_upsert]

@pcostell pcostell Feb 10, 2016

Copy link
Copy Markdown

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.

Sorry this changed recently, but can you include creation of entities + keys in the snippet too?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@pcostell pcostell Feb 11, 2016

Copy link
Copy Markdown

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.

Ah sorry --

These should be automatically allocated ids. We should show how to extract the keys from the batch afterwards.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@pcostell pcostell Feb 11, 2016

Copy link
Copy Markdown

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.

Since v1beta2 doesn't support upsert with auto id allocation, can we make this a batch insert instead of upsert? Sorry I didn't catch this, these snippets were designed for v1beta3.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@ajkannan ajkannan Feb 11, 2016

Copy link
Copy Markdown
Contributor Author

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.

Got it, updated in the latest commit.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@pcostell

pcostell commented Feb 10, 2016

Copy link
Copy Markdown

Looks great, thanks Ajay!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Ajay Kannan
Minor fixes
d6bfb60
@ajkannan

ajkannan commented Feb 10, 2016

Copy link
Copy Markdown
Contributor Author

Incorporated Patrick's feedback.

Also /cc @lesv

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Ajay Kannan
Fix batchUpsert snippet + minor changes for consiceness
c7b4340
aozarov
aozarov reviewed Feb 11, 2016
View reviewed changes
Comment thread datastore/src/main/java/com/google/datastore/snippets/TaskList.java Outdated
markDone(id);
System.out.println("task marked done");
} catch (DatastoreException e) {
System.out.printf("did not find a Task entity with ID %d\n", id);

@aozarov aozarov Feb 11, 2016

Copy link
Copy Markdown
Contributor

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.

Nit, you can use %n instead of \n

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Ajay Kannan
Style fixes and minor bug fixes
7f34191
@ajkannan

ajkannan commented Feb 11, 2016

Copy link
Copy Markdown
Contributor Author

Pushed a commit to incorporate @aozarov feedback. Ready for another round of review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ajkannan ajkannan assigned lesv Feb 11, 2016
lesv
lesv reviewed Feb 11, 2016
View reviewed changes
Comment thread datastore/README.md
@@ -0,0 +1,14 @@
## Datastore Samples

This directory contains sample code used in Google Cloud Datastore documentation. Included here is a sample command line application, `TaskList`, that interacts with Datastore to manage a to-do list.

@lesv lesv Feb 11, 2016

Copy link
Copy Markdown
Contributor

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.

App Engine Managed VMs or Standard?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@lesv lesv Feb 11, 2016

Copy link
Copy Markdown
Contributor

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.

Ah MVM / any Java.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@lesv

lesv commented Feb 11, 2016

Copy link
Copy Markdown
Contributor

LGTM - your choice to update readme / pom for nits.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Ajay Kannan
Fix nits in pom/README/concept snippets
63f756a
@aozarov

aozarov commented Feb 12, 2016

Copy link
Copy Markdown
Contributor

LGTM. Nice job!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ajkannan added a commit that referenced this pull request Feb 12, 2016
@ajkannan
Merge pull request #90 from GoogleCloudPlatform/datastore-samples
2c88e44
Datastore Concepts snippets and Getting Started app
@ajkannan
ajkannan merged commit 2c88e44 into master Feb 12, 2016
@ajkannan
ajkannan deleted the datastore-samples branch February 12, 2016 00:46
@lesv

lesv commented Feb 12, 2016

Copy link
Copy Markdown
Contributor

Totally agree - very nice job!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ajkannan ajkannan mentioned this pull request Feb 16, 2016
Create snippets for Cloud Datastore page googleapis/google-cloud-java#541
Closed
minherz pushed a commit that referenced this pull request Nov 9, 2022
@renovate-bot
chore(deps): update dependency com.google.cloud:libraries-bom to v4.3…
302049a
….0 (#90)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.2.0` -> `4.3.0` |

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-errorreporting).
minherz pushed a commit that referenced this pull request Nov 10, 2022
@renovate-bot @minherz
chore(deps): update dependency com.google.cloud:libraries-bom to v4.3…
c7b5442
….0 (#90)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.2.0` -> `4.3.0` |

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-errorreporting).
minherz pushed a commit that referenced this pull request Nov 10, 2022
@renovate-bot @minherz
chore(deps): update dependency com.google.cloud:libraries-bom to v4.3…
3d2cea7
….0 (#90)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.2.0` -> `4.3.0` |

---

### Renovate configuration

:date: **Schedule**: At any time (no schedule defined).

:vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

:recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

:no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-errorreporting).
Shabirmean pushed a commit that referenced this pull request Nov 11, 2022
@TrucHLe
samples: export data to BigQuery (#90)
7959f89
@Shabirmean Shabirmean mentioned this pull request Nov 11, 2022
samples: migrate code from googleapis/java-contact-center-insights #7411
Merged
9 tasks
Shabirmean pushed a commit that referenced this pull request Nov 11, 2022
@TrucHLe @Shabirmean
samples: export data to BigQuery (#90)
e41d47a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lesv lesv

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@ajkannan @pcostell @lesv @aozarov
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.