-
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
Remove datastore.Dataset class #477
Labels
api: datastore
Issues related to the Datastore API.
🚨
This issue needs some love.
triage me
I really want to be triaged.
Comments
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 2, 2015
This allows methods which rely on a connection to be used with no arguments. Fixes first part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 2, 2015
Addresses second part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 2, 2015
Addresses third part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 2, 2015
Addresses fourth part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 2, 2015
Addresses fifth part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 3, 2015
Addresses sixth part of googleapis#477.
This was referenced Jan 3, 2015
Merged
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 6, 2015
This allows methods which rely on a connection to be used with no arguments. Fixes first part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 6, 2015
Addresses second part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 6, 2015
Addresses third part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 6, 2015
Addresses third part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 6, 2015
Addresses fourth part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 6, 2015
Addresses fifth part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 6, 2015
Addresses sixth part of googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 7, 2015
Addresses part 8 of googleapis#477.
Re-opening until cyclic-imports are resolved. |
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 8, 2015
Removed Entity.reload() because it relied on the existence of Key.get(). Replacing it would have required import gcloud.datastore.get in entity.py, which would have again been a cyclic import. With an eye on removing the Entity class (see googleapis#490), removing Entity.reload() is not such a big deal. Fixes googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 8, 2015
Removed Entity.reload() because it relied on the existence of Key.get(). Replacing it would have required import gcloud.datastore.get in entity.py, which would have again been a cyclic import. With an eye on removing the Entity class (see googleapis#490), removing Entity.reload() is not such a big deal. Fixes googleapis#477.
dhermes
added a commit
to dhermes/google-cloud-python
that referenced
this issue
Jan 8, 2015
Removed Entity.reload() because it relied on the existence of Key.get(). Replacing it would have required import gcloud.datastore.get in entity.py, which would have again been a cyclic import. With an eye on removing the Entity class (see googleapis#490), removing Entity.reload() is not such a big deal. Fixes googleapis#477.
Closed for #517 |
tswast
added a commit
to tswast/google-cloud-python
that referenced
this issue
Nov 29, 2018
* WIP: reader to reconnect on ReadRows streams * Add method to copy a StreamPosition. * Add unit tests for hand-written reader module. * Add docs for new hand-written module. * Add fastavro to root intersphinx * Add ServiceUnavailable to list of resumable exceptions. Pull in .coveragerc file from upstream google-cloud-python.
tswast
added a commit
that referenced
this issue
Nov 29, 2018
* Generate google-cloud-bigquery-storage library using synthtool. (#472) * Add simple system test for BigQuery Storage API (#473) * Add simple system test for BigQuery Storage API For the system tests to run correctly, an unreleased version of api_core is required. Updates the setup.py file to indicate the minimum version. * Remove mock dependency and unnecessary imports. * Use -e for local deps. * Add manual client for BigQuery Storage (#474) * Add manual client for BigQuery Storage. The manual client adds a default project, which is used by the wrapped create_read_session to make the project parameter optional. A future purpose of the manual client is to override the read_rows method to return an iterator that can reconnect with the correct offset, much like Spanner's StreamedResultSet class. This work is not yet complete. I'd like feedback on the approach for the manual client first. * Use same client name as wrapped gapic class. * Use subclass for BigQueryStorageClient Also, change create_read_session project argument back to 'parent' to better match the super class. * Add unit tests. * Remove default project from manual client. * Use project_id fixture in system tests. * Regenerate google-cloud-bigquery-storage (#475) * Regenerate google-cloud-bigquery-storage * Re-synthed * Handwritten reader to reconnect on ReadRows streams (#477) * WIP: reader to reconnect on ReadRows streams * Add method to copy a StreamPosition. * Add unit tests for hand-written reader module. * Add docs for new hand-written module. * Add fastavro to root intersphinx * Add ServiceUnavailable to list of resumable exceptions. Pull in .coveragerc file from upstream google-cloud-python.
erikwebb
pushed a commit
to erikwebb/google-cloud-python
that referenced
this issue
Dec 3, 2018
* Generate google-cloud-bigquery-storage library using synthtool. (googleapis#472) * Add simple system test for BigQuery Storage API (googleapis#473) * Add simple system test for BigQuery Storage API For the system tests to run correctly, an unreleased version of api_core is required. Updates the setup.py file to indicate the minimum version. * Remove mock dependency and unnecessary imports. * Use -e for local deps. * Add manual client for BigQuery Storage (googleapis#474) * Add manual client for BigQuery Storage. The manual client adds a default project, which is used by the wrapped create_read_session to make the project parameter optional. A future purpose of the manual client is to override the read_rows method to return an iterator that can reconnect with the correct offset, much like Spanner's StreamedResultSet class. This work is not yet complete. I'd like feedback on the approach for the manual client first. * Use same client name as wrapped gapic class. * Use subclass for BigQueryStorageClient Also, change create_read_session project argument back to 'parent' to better match the super class. * Add unit tests. * Remove default project from manual client. * Use project_id fixture in system tests. * Regenerate google-cloud-bigquery-storage (googleapis#475) * Regenerate google-cloud-bigquery-storage * Re-synthed * Handwritten reader to reconnect on ReadRows streams (googleapis#477) * WIP: reader to reconnect on ReadRows streams * Add method to copy a StreamPosition. * Add unit tests for hand-written reader module. * Add docs for new hand-written module. * Add fastavro to root intersphinx * Add ServiceUnavailable to list of resumable exceptions. Pull in .coveragerc file from upstream google-cloud-python.
yoshi-automation
added
triage me
I really want to be triaged.
🚨
This issue needs some love.
labels
Apr 6, 2020
atulep
pushed a commit
that referenced
this issue
Apr 6, 2023
atulep
pushed a commit
that referenced
this issue
Apr 6, 2023
atulep
pushed a commit
that referenced
this issue
Apr 18, 2023
parthea
pushed a commit
that referenced
this issue
Jun 4, 2023
…mplates/python_library/.kokoro (#477) Source-Link: googleapis/synthtool@30bd01b Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:9bc5fa3b62b091f60614c08a7fb4fd1d3e1678e326f34dd66ce1eefb5dc3267b Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea
added a commit
that referenced
this issue
Aug 15, 2023
Source-Link: googleapis/synthtool@7197a00 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:c43f1d918bcf817d337aa29ff833439494a158a0831508fda4ec75dc4c0d0320 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
vchudnov-g
pushed a commit
that referenced
this issue
Sep 20, 2023
Source-Link: googleapis/synthtool@571ee2c Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:660abdf857d3ab9aabcd967c163c70e657fcc5653595c709263af5f3fa23ef67
parthea
pushed a commit
that referenced
this issue
Sep 22, 2023
Source-Link: googleapis/synthtool@50db768 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:e09366bdf0fd9c8976592988390b24d53583dd9f002d476934da43725adbb978
parthea
pushed a commit
that referenced
this issue
Sep 22, 2023
parthea
pushed a commit
that referenced
this issue
Oct 21, 2023
parthea
pushed a commit
that referenced
this issue
Oct 21, 2023
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
parthea
pushed a commit
that referenced
this issue
Oct 21, 2023
Source-Link: googleapis/synthtool@5f2a608 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:8555f0e37e6261408f792bfd6635102d2da5ad73f8f09bcb24f25e6afb5fac97 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea
pushed a commit
that referenced
this issue
Oct 22, 2023
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.
🚨
This issue needs some love.
triage me
I really want to be triaged.
The replacement will be handled by a string when dataset ID is explicitly needed (which will only be for power users). Some functionality will be moved to
key.Key
and the rest to theconnection
module as free functions. In order to make use easier, they will also have versions in__init__
which can use a default / implicit connection.Steps to complete:
set_default_connection
similar toset_default_dataset
(Address first part of 477: Implements datastore.set_default_connection. #478)query()
,entity()
, andtransaction()
methods fromDataset
, replace their use elsewhere. (Address second part of 477: Remove query(), entity(), and transaction() methods from Dataset. #479)Dataset.get_entity
toKey
(will impact elsewhere, e.g.Entity.reload
) (Address third part of 477: Move Dataset.get_entity to Key. #480)save()
anddelete()
methodsdelete()
method fromEntity
toKey
(Address fourth part of 477: Moving Entity.delete to Key (for datastore). #481)allocate_ids()
method fromDataset
toconnection
__init__
module as free function (Address fifth part of 477: Moves Dataset.allocate_ids to connection module. #482)get_entities()
method fromDataset
toconnection
__init__
module as free function (Address sixth part of 477: Moves Dataset.get_entities to __init__ module. #483)Remove dataset from Entity constructor and allow a key #484, Remove Query dependency on Dataset and make dataset_id required in Query #485, Remove Transaction dependency on Dataset #486- Lots to do to re-makeEntity
,Query
, andTransaction
to not depend onDataset
Dataset
(e.g.set_default_dataset
,Entity._must_dataset
, and_implicit_environ._DatastoreBase
)NOTE: Don't close until
cyclic-import
in #480 is resolved.See https://docs.google.com/document/d/1xKw8Tz6lfN5uOcv0my4uUgFSeDoRzwCLho2UGlBpqDU/edit for more.
The text was updated successfully, but these errors were encountered: