Skip to content

datastore: accept read consistencies - #1259

Merged
callmehiphop merged 1 commit into
googleapis:masterfrom
stephenplusplus:spp--1218
May 3, 2016
Merged

callmehiphop merged 1 commit into
googleapis:masterfrom
stephenplusplus:spp--1218

Conversation

@stephenplusplus

@stephenplusplus stephenplusplus commented Apr 23, 2016 •

Copy link
Copy Markdown
Contributor

Fixes #1218

To Dos

  • Docs
  • Unit tests

@pcostell would you mind taking a look? Also, is there a reliable way to run tests against the API for eventual & strong consistency, or should we just trust our unit tests that the correct read options are making their way to the API?

@stephenplusplus stephenplusplus added enhancement api: datastore Issues related to the Datastore API. labels Apr 23, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Apr 23, 2016
Comment thread lib/datastore/request.js Outdated

if (is.defined(options.strongConsistency)) {
reqOpts.readOptions = {
readConsistency: options.strongConsistency ? 1 : 2 // (strong : eventual)

This comment was marked as spam.

This comment was marked as spam.

@stephenplusplus

Copy link
Copy Markdown
Contributor Author

@pcostell thanks for taking a look. Can you think of any test cases synopses that would work for this change against the real API?

@pcostell

Copy link
Copy Markdown
Contributor

Probably no good test cases. This is primarily for efficiency at the sake of consistency, so any tests would have to be eventually consistent (and thus flaky).

@coveralls

coveralls commented May 1, 2016 •

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling c051abf on stephenplusplus:spp--1218 into e9e4170 on GoogleCloudPlatform:master.

Comment thread lib/datastore/request.js Outdated
};

if (options.consistency) {
var consistencyMap = {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@coveralls

coveralls commented May 2, 2016 •

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 4cf8bbc on stephenplusplus:spp--1218 into 7a508f6 on GoogleCloudPlatform:master.

@callmehiphop
callmehiphop merged commit 2751a39 into googleapis:master May 3, 2016
miguelvelezsa pushed a commit that referenced this pull request Jul 23, 2025
[![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [sinon](https://sinonjs.org/) ([source](https://togithub.com/sinonjs/sinon)) | [`^13.0.0` -> `^14.0.0`](https://renovatebot.com/diffs/npm/sinon/13.0.2/14.0.0) | [![age](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/compatibility-slim/13.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/npm/sinon/14.0.0/confidence-slim/13.0.2)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>sinonjs/sinon</summary>

### [`v14.0.0`](https://togithub.com/sinonjs/sinon/blob/HEAD/CHANGES.md#&#8203;1400)

[Compare Source](https://togithub.com/sinonjs/sinon/compare/v13.0.2...v14.0.0)

-   [`c2bbd826`](https://togithub.com/sinonjs/sinon/commit/c2bbd82641444eb5b32822489ae40f185afbbf00)
    Drop node 12 (Morgan Roderick)
    > And embrace Node 18
    >
    > See https://nodejs.org/en/about/releases/

*Released by Morgan Roderick on 2022-05-07.*

</details>

---

### Configuration

📅 **Schedule**: "after 9am and before 3pm" (UTC).

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

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

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

---

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

---

This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/gax-nodejs).
sofisl pushed a commit that referenced this pull request Feb 25, 2026
…#811 (#1259)

* build: rename _toc to toc

Source-Author: F. Hinkelmann <[email protected]>
Source-Date: Tue Jul 21 10:53:20 2020 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 99c93fe09f8c1dca09dfc0301c8668e3a70dd796
Source-Link: googleapis/synthtool@99c93fe

* build: move gitattributes files to node templates

Source-Author: F. Hinkelmann <[email protected]>
Source-Date: Thu Jul 23 01:45:04 2020 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 3a00b7fea8c4c83eaff8eb207f530a2e3e8e1de3
Source-Link: googleapis/synthtool@3a00b7f
sofisl pushed a commit that referenced this pull request Feb 26, 2026
This PR was generated using Autosynth. 🌈

Synth log will be available here:
https://source.cloud.google.com/results/invocations/c70654a6-9134-4d1e-9028-96354fef7186/targets

- [ ] To automatically regenerate this PR, check this box.

Source-Link: googleapis/synthtool@89c849b
Source-Link: googleapis/synthtool@a783321
Source-Link: googleapis/synthtool@b7413d3
Source-Link: googleapis/synthtool@5f6ef0e
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request Mar 18, 2026
…googleapis#811 (googleapis#1259)

* build: rename _toc to toc

Source-Author: F. Hinkelmann <[email protected]>
Source-Date: Tue Jul 21 10:53:20 2020 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 99c93fe09f8c1dca09dfc0301c8668e3a70dd796
Source-Link: googleapis/synthtool@99c93fe

* build: move gitattributes files to node templates

Source-Author: F. Hinkelmann <[email protected]>
Source-Date: Thu Jul 23 01:45:04 2020 -0400
Source-Repo: googleapis/synthtool
Source-Sha: 3a00b7fea8c4c83eaff8eb207f530a2e3e8e1de3
Source-Link: googleapis/synthtool@3a00b7f
GautamSharda pushed a commit that referenced this pull request Mar 23, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
GautamSharda pushed a commit that referenced this pull request Mar 25, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
shivanee-p pushed a commit that referenced this pull request Mar 27, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request May 5, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
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 Datastore API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants