GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — DISCUSSION: Enforce user-friendly data in datastore · Issue #532 · googleapis/google-cloud-python

DISCUSSION: Enforce user-friendly data in datastore #532

New issue
Copy link
New issue
Copy link
Closed
Closed
DISCUSSION: Enforce user-friendly data in datastore#532
Copy link
Assignees
jgeewax
Labels
api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Description

@dhermes
dhermes
opened on Jan 12, 2015
Issue body actions

This is two-fold:

  1. Keep users from doing things which are allowed but may come back to bite them. For example, spaces in field names, negative dataset IDs
  2. Document code paths which are allowed by our library but will fail on the backend. (Discussions in Draw distinction between bytes in blob_value (datastore property type) and large objects in GCS #329, Key id / name should fail if set to 0 / '' #443, Storing an Entity as an indexed property value always fails #529, Trouble with TextProperties #579, datastore: Nested entity parsing fails #616 and DISCUSSION: Entity still not behaving like a dict #620 need to be incorporated).

Is it better to add lots of conditionals and (IMO brittle) validity checks? Or, is the pragmatic approach (less code, let backend indicate failure) better?

/cc @jgeewax

Activity

  1. dhermes
    added
    api: datastoreIssues related to the Datastore API.
    type: questionRequest for information or clarification. Not an issue.
    on Jan 12, 2015
  2. tseaver commented on Jan 14, 2015

    @tseaver
    tseaver
    on Jan 14, 2015
    Contributor
    More actions

    We should probably document the two kinds of cases (stuff the backend would allow, but which can't be spelled with our APIs, and stuff which our APIs would allow, but which the backend will reject) in a single place.

  3. jgeewax commented on Jan 14, 2015

    @jgeewax
    jgeewax
    on Jan 14, 2015
    Contributor
    More actions

    I personally like the idea of letting the back-end tell us when stuff is broken rather than lots of client-side validity checks. However I would like to make our stance clear on how we deal with bugs like ".filter() doesnt let me filter on properties that start with spaces" (in that case, I think our reply should be: "we're not going to change our API to support that disastrous edge case").

    Is this ticket a good place to collect the list of things?

  4. dhermes commented on Jan 14, 2015

    @dhermes
    dhermes
    on Jan 14, 2015
    ContributorAuthor
    More actions

    @jgeewax This is a good place to collect.

    RE: .filter(), as of #430, this is not something we need to actively worry about, though we could discourage the use of spaces by checking the property name. I am (moderately) against unnecessary branching (but aware Python is slow anyway).

  5. jgeewax
    added this to the This milestone has been deleted milestone on Jan 30, 2015
  6. jgeewax commented on Feb 13, 2015

    @jgeewax
    jgeewax
    on Feb 13, 2015
    Contributor
    More actions

    I think we may have done everything we can do here... Thoughts?

  7. dhermes commented on Feb 13, 2015

    @dhermes
    dhermes
    on Feb 13, 2015
    ContributorAuthor
    More actions

    Well we haven't documented anything and there are at least 6 bugs which ended up referring to this issue due to user confusion with the backend (i.e. rejecting an Entity that was indexed, they can never be).

  8. jgeewax
    closed this as completedon Feb 24, 2015
  9. JustinBeckwith
    assigned
    jgeewax
    on Feb 1, 2021
  10. parthea
    added a commit that references this issue on Aug 15, 2023

    chore(main): release 1.24.0 (#532)

    342cfd4
  11. parthea
    added 4 commits that reference this issue on Oct 21, 2023

    docs: Brand and typo fixes (#532)

    5dee52d

    chore: Update gapic-generator-python to v1.8.5 (#532)

    a24f901

    chore: rename rst files to avoid conflict with service names (#532)

    c554245

    chore(main): release 3.4.2 (#532)

    ffeaefc
  12. parthea
    added 9 commits that reference this issue on Nov 22, 2025

    chore(deps): update google-github-actions/setup-gcloud action to v0.6…

    c2c8e22

    fix: remove typo from py_gapic.bzl (#532)

    cf08769

    build: Add presubmits for Python 3.14 pre-release (#532)

    abe9d52

    chore: Update gapic-generator-python to v1.16.1 (#532)

    3175823

    docs: add generated snippets (#532)

    6f498ac

    chore(deps): update all dependencies (#532)

    0d25323

    docs: fix type hint for urlsafe (#532)

    33e1c6b

    chore(deps): update all dependencies (#532)

    4a3621a

    fix(dependencies): Further restrict RSA versions (#532)

    bdb8882
  13. parthea
    added 5 commits that reference this issue on Mar 2, 2026

    chore: use gapic-generator-python 0.56.2 (#532)

    cb88cbf

    docs: explain retry behavior for DONE jobs (#532)

    f424c05

    chore: release 2.10.0 (#533)

    797bf39

    chore: unit test coverage and additional refactoring for `spanner_dba…

    8be467d

    chore(deps): update dependency pkginfo to v1.12.0 (#532)

    ca52522
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jgeewax
    jgeewax

Labels

api: datastoreIssues related to the Datastore API.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.