-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Address second part of 477: Remove query(), entity(), and transaction() methods from Dataset. #479
Conversation
I'm not sure about removing transaction from dataset (and dataset/transactions in general). Is it not valuable to support working on multiple transactions simultaneously? Transactions are not unique to a dataset much less a connection. |
@dhermes and it was determined that editing multiple datasets simultaneously was not a valuable enough use case to justify a class which stores dataset-id and forwards methods to connection (so users don't have to track string literals?) it does seem like an edge case, but also I kinda like the abstraction of connection. EDIT: This was addressed briefly in the design doc, but it seems like we are moving towards splitting methods across |
RE: "Tracking string literals". Carrying around RE: "Multiple datasets". This support is not being removed. RE: "Splitting methods across All this notwithstanding, the |
Other than the fact that Eliminating dataset prevents us from allowing users to associate persistent settings on a per dataset basis, for example, eventually consistent reads, or forced mutations. Instead they have to specify these options each time they call the method in connection. In my mind a dataset was an immutable wrapper for all the optional arguments to mutations and fetches. So the interface for
None of this functionality should be merged into connection, as it all depends on options which could reasonably be different depending on the dataset. All of this could be done with optional arguments to |
These seem like great ideas, can we track elsewhere? RE: Methods on from gcloud import datastore
datastore.set_defaults() and then from then forward
etc. |
@dhermes, you you want to rebase, or should we just merge it manually. |
LGTM, by the way. |
with that Also would you like me to create an issue? Alternatively I can try to sketch out a basic implementation and make a pull request for discussion. Whichever you prefer. |
Addresses second part of googleapis#477.
@elibixby Please file an issue. Let's discuss please before any implementation. |
Address second part of 477: Remove query(), entity(), and transaction() methods from Dataset.
Source-Link: https://togithub.com/googleapis/synthtool/commit/d0f51a0c2a9a6bcca86911eabea9e484baadf64b Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:240b5bcc2bafd450912d2da2be15e62bc6de2cf839823ae4bf94d4f392b451dc
… webhook_prebuilt_telecom sample (#479) * fix: Update previous month logic to avoid zer-index bug * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
fix(deps): require proto-plus>=1.15.0
* docs: remove migrated snippets * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Source-Link: https://togithub.com/googleapis/synthtool/commit/26c7505b2f76981ec1707b851e1595c8c06e90fc Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:f946c75373c2b0040e8e318c5e85d0cf46bc6e61d0a01f3ef94d8de974ac6790
Source-Link: googleapis/synthtool@56da63e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:993a058718e84a82fda04c3177e58f0a43281a996c7c395e0a56ccc4d6d210d7
NOTE: Has #478 as diffbase.