Skip to content
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

Closed
9 tasks done
dhermes opened this issue Jan 2, 2015 · 2 comments
Closed
9 tasks done

Remove datastore.Dataset class #477

dhermes opened this issue Jan 2, 2015 · 2 comments
Assignees
Labels
api: datastore Issues related to the Datastore API. 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@dhermes
Copy link
Contributor

dhermes commented Jan 2, 2015

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 the connection 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:

NOTE: Don't close until cyclic-import in #480 is resolved.

See https://docs.google.com/document/d/1xKw8Tz6lfN5uOcv0my4uUgFSeDoRzwCLho2UGlBpqDU/edit for more.

@dhermes dhermes added the api: datastore Issues related to the Datastore API. label Jan 2, 2015
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
@dhermes dhermes self-assigned this Jan 2, 2015
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 2, 2015
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 2, 2015
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 2, 2015
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 3, 2015
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
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 6, 2015
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 6, 2015
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 6, 2015
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 6, 2015
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 6, 2015
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Jan 7, 2015
@dhermes dhermes closed this as completed in 073478a Jan 8, 2015
@dhermes
Copy link
Contributor Author

dhermes commented Jan 8, 2015

Re-opening until cyclic-imports are resolved.

@dhermes dhermes reopened this Jan 8, 2015
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.
@dhermes dhermes closed this as completed Jan 8, 2015
@dhermes
Copy link
Contributor Author

dhermes commented Jan 8, 2015

Closed for #517

@jgeewax jgeewax modified the milestone: Datastore Stable Jan 30, 2015
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.
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 6, 2020
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 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>
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.
Projects
None yet
Development

No branches or pull requests

3 participants