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

Update Key API to be more user-friendly per design doc discussion #451

Closed
10 tasks done
dhermes opened this issue Dec 19, 2014 · 2 comments
Closed
10 tasks done

Update Key API to be more user-friendly per design doc discussion #451

dhermes opened this issue Dec 19, 2014 · 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 Dec 19, 2014

Related to #3 and
https://docs.google.com/document/d/1xKw8Tz6lfN5uOcv0my4uUgFSeDoRzwCLho2UGlBpqDU/edit

Plan to make this work:

@dhermes dhermes added the api: datastore Issues related to the Datastore API. label Dec 19, 2014
@dhermes dhermes self-assigned this Dec 19, 2014
This was referenced Dec 21, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 22, 2014
Addresses first part of googleapis#451. Also removes uses of path in
place of key since Key constructor will enable such easy
use going forward.
@dhermes dhermes changed the title Change Key constructor to accept paths as args Update Key API to be more user-friendly per design doc discussion Dec 23, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 23, 2014
Addresses second part of googleapis#451. In some cases, since no valid
replacements for setters are implemented here, the functionality
is replaced with hacks using protected methods.

Also added a getter for Key._dataset_id and made the Key.path
property return a copy since a `list` of `dict`s is very much
mutable.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 23, 2014
This is in preparation for adding parent to the constructor.

Addresses third part of googleapis#451.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 23, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 23, 2014
@dhermes
Copy link
Contributor Author

dhermes commented Dec 23, 2014

UPDATE: Not necessary since Key.compare_to_proto was removed.


We should probably also move

        for element in protobuf.path_element:
            key_part = {}
            for descriptor, value in element._fields.items():
                key_part[descriptor.name] = value
            path.append(key_part)

(repeated in Key.compare_to_proto, helpers.key_from_protobuf and test_entity._Key.compare_to_proto) into it's own method.

dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 23, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 23, 2014
Addresses seventh part of googleapis#451.

Also requires removing the dataset_id from generated protobufs
due to googleapis/google-cloud-datastore#59. This
occurs also in __key__ filters and ancestor queries.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 23, 2014
Addresses first part of googleapis#451. Also removes uses of path in
place of key since Key constructor will enable such easy
use going forward.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 30, 2014
Addresses first part of googleapis#451. Also removes uses of path in
place of key since Key constructor will enable such easy
use going forward.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 30, 2014
Addresses second part of googleapis#451. In some cases, since no valid
replacements for setters are implemented here, the functionality
is replaced with hacks using protected methods.

Also added a getter for Key._dataset_id and made the Key.path
property return a copy since a `list` of `dict`s is very much
mutable.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 30, 2014
This is in preparation for adding parent to the constructor.

Addresses third part of googleapis#451.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 30, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 30, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 30, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 30, 2014
Addresses seventh part of googleapis#451.

Also requires removing the dataset_id from generated protobufs
due to googleapis/google-cloud-datastore#59. This
occurs also in __key__ filters and ancestor queries.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 30, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 31, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 31, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 31, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 31, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 31, 2014
Addresses seventh part of googleapis#451.

Also requires removing the dataset_id from generated protobufs
due to googleapis/google-cloud-datastore#59. This
occurs also in __key__ filters and ancestor queries.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 31, 2014
Addresses seventh part of googleapis#451.

Also requires removing the dataset_id from generated protobufs
due to googleapis/google-cloud-datastore#59. This
occurs also in __key__ filters and ancestor queries.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 31, 2014
Addresses seventh part of googleapis#451.

Also requires removing the dataset_id from generated protobufs
due to googleapis/google-cloud-datastore#59. This
occurs also in __key__ filters and ancestor queries.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 31, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 31, 2014
Addresses seventh part of googleapis#451.

Also requires removing the dataset_id from generated protobufs
due to googleapis/google-cloud-datastore#59. This
occurs also in __key__ filters and ancestor queries.
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 31, 2014
dhermes added a commit to dhermes/google-cloud-python that referenced this issue Dec 31, 2014
@dhermes
Copy link
Contributor Author

dhermes commented Jan 3, 2015

Putting off bulk doc fixes until API is stable again

@dhermes dhermes closed this as completed Jan 3, 2015
@jgeewax jgeewax modified the milestone: Datastore Stable Jan 30, 2015
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 7, 2020
atulep pushed a commit that referenced this issue Apr 6, 2023
Co-authored-by: Nitsan Shai <nshai@google.com>
Co-authored-by: nicain <nicain.seattle@gmail.com>
atulep pushed a commit that referenced this issue Apr 6, 2023
Co-authored-by: Nitsan Shai <nshai@google.com>
Co-authored-by: nicain <nicain.seattle@gmail.com>
atulep pushed a commit that referenced this issue Apr 18, 2023
Co-authored-by: Nitsan Shai <nshai@google.com>
Co-authored-by: nicain <nicain.seattle@gmail.com>
parthea pushed a commit that referenced this issue Jun 4, 2023
PiperOrigin-RevId: 504600937

Source-Link: googleapis/googleapis@91bee51

Source-Link: googleapis/googleapis-gen@70424b9
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzA0MjRiOTQ1N2QxNWVkODUyYTBhMGI5YTRmMDMyZjJiMzA5YjMyYyJ9

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
parthea pushed a commit that referenced this issue Aug 15, 2023
Source-Link: googleapis/synthtool@56da63e
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:993a058718e84a82fda04c3177e58f0a43281a996c7c395e0a56ccc4d6d210d7
parthea pushed a commit that referenced this issue Sep 22, 2023
* docs: removes deprecated sample

* modifies tags to matched deprecated function call
parthea added a commit that referenced this issue Sep 22, 2023
* chore(deps): update all dependencies

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* revert

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea added a commit that referenced this issue Sep 22, 2023
* fix(deps): allow protobuf 3.19.5

* explicitly exclude protobuf 4.21.0
parthea pushed a commit that referenced this issue Oct 22, 2023
Co-authored-by: Nitsan Shai <nshai@google.com>
Co-authored-by: nicain <nicain.seattle@gmail.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

Successfully merging a pull request may close this issue.

3 participants