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 — cross-namespace kind metadata · Issue #86 · googleapis/google-cloud-node

cross-namespace kind metadata #86

New issue
Copy link
New issue
Copy link
Closed
Closed
cross-namespace kind metadata#86
Copy link
Assignees
stephenplusplus
Labels
🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.
Milestone
Datastore Future

Description

@pcostell
pcostell
opened on Aug 1, 2014
Issue body actions

When a user registers a kind, they must also specify a namespace. My understanding of namespace usage is that most people use it to separate customer/user data. However in this case, you'd want to have dynamic namespaces for each customer, but the information about your kinds would want shared across all namespaces, since you are running the same application for each customer.

In this case, you would want to specify the namespace of a specific key/entity when you do the get/put, since this is the point where you know which customers data you are working with.

Activity

Next
  1. rakyll
    added
    enhancement
    on Aug 2, 2014
  2. rakyll commented on Aug 5, 2014

    @rakyll
    rakyll
    on Aug 5, 2014
    Contributor
    More actions

    We should allow registration of kinds globally by default, and allow them to optionally override type schema for a given set of namespaces.

  3. stephenplusplus
    added a commit that references this issue on Aug 30, 2014

    datastore: support kind schema. fixes googleapis#85 googleapis#86

    ef45b39
  4. stephenplusplus
    changed the title [-]datastore: cross-namespace kind metadata[/-] [+]cross-namespace kind metadata[/+] on Jan 20, 2015
  5. stephenplusplus
    added
    api: datastoreIssues related to the Datastore API.
    on Jan 20, 2015
  6. ryanseys commented on Jan 31, 2015

    @ryanseys
    ryanseys
    on Jan 31, 2015
    Contributor
    More actions

    Sorry, I don't understand this issue. Could you provide an example? Perhaps with some (psuedo)code that explains essentially what is happening now vs. what would be better to happen?

  7. jgeewax
    assigned
    pcostell
    on Feb 2, 2015
  8. jgeewax
    added this to the Datastore Stable milestone on Feb 2, 2015
  9. pcostell commented on Feb 2, 2015

    @pcostell
    pcostell
    on Feb 2, 2015
    ContributorAuthor
    More actions

    From the example:

    registerKind('namespace', 'Author', {
       name: { kind: String, indexed: false },
       tags: { kind: String, multi: true }, // an array of string elements.
       favArticles: { kind: KEY, multi: true },
         contact: {
           kind: {
             telephone: { kind: String },
             email: { kind: String }
          }
       }
    });

    Preferred method:

    registerKind('Author', {
       name: { kind: String, indexed: false },
       tags: { kind: String, multi: true }, // an array of string elements.
       favArticles: { kind: KEY, multi: true },
         contact: {
           kind: {
             telephone: { kind: String },
             email: { kind: String }
          }
       }
    });
  10. pcostell commented on Feb 2, 2015

    @pcostell
    pcostell
    on Feb 2, 2015
    ContributorAuthor
    More actions

    However, I'm not convinced that the gcloud API should expose this. It seems we should focus on getting gcloud to support both ndb and the simple key-value store. For users that want model definitions we should just recommend ndb.

  11. jgeewax commented on Feb 2, 2015

    @jgeewax
    jgeewax
    on Feb 2, 2015
    Contributor
    More actions

    We don't have this method -- moving this to Datastore Future (if at all).

  12. jgeewax
    modified the milestones: Datastore Future, Datastore Stable on Feb 2, 2015
  13. pcostell commented on Feb 2, 2015

    @pcostell
    pcostell
    on Feb 2, 2015
    ContributorAuthor
    More actions

    Oops sorry for some reason I thought we were talking python...

    registerKind does look like is still exists in lib/datastore/entity.js. In this case the ndb argument does not apply, but it may be worthwhile to separate the ORM code into a separate module/directory.

  14. jgeewax
    unassigned
    pcostell
    on Feb 3, 2015
  15. 86 remaining items

  16. sofisl
    added 2 commits that reference this issue on Feb 4, 2026

    fix(deps): update dependency @google-cloud/logging to v2 (#86)

    0cb880e

    chore: test on node10 (#86)

    a35d49e
  17. GautamSharda
    added a commit that references this issue on Feb 5, 2026

    chore: update `error-reporting` to use import statements (#86)

    6556e2d
  18. sofisl
    added a commit that references this issue on Feb 17, 2026

    chore: test on node10 (#86)

    e581f3f
  19. GautamSharda
    added a commit that references this issue on Feb 23, 2026

    chore: update `error-reporting` to use import statements (#86)

    b9946c8
  20. sofisl
    added a commit that references this issue on Feb 24, 2026

    Pegging GRPC version at 1.7.1 (#86)

    994280a
  21. GautamSharda
    added 2 commits that reference this issue on Feb 25, 2026

    chore(deps): update dependency @types/mocha to v8 (#86)

    a10f827

    chore: update `error-reporting` to use import statements (#86)

    6eb0b61
  22. sofisl
    added a commit that references this issue on Feb 26, 2026

    run CI as non-root user to speed up things (#86)

    3df9fe3
  23. codyoss
    added a commit that references this issue on Mar 5, 2026

    docs: update links in contrib guide (#86)

    03a511a
  24. sofisl
    added 2 commits that reference this issue on Mar 5, 2026

    Jsdoc region tag migration (#52)

    ebebe7a

    feat: agent pooling (#86)

    2da5741
  25. codyoss
    added a commit that references this issue on Mar 12, 2026

    chore: update jsdoc.js (#86)

    d9a94cd
  26. GautamSharda
    added 2 commits that reference this issue on Mar 12, 2026

    docs: update contributing path in README (#86)

    faf406a

    docs: update contributing path in README (#86)

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

Metadata

Metadata

Assignees

  • @stephenplusplus
    stephenplusplus

Labels

🚨This issue needs some love.api: datastoreIssues related to the Datastore API.triage meI really want to be triaged.

Type

No type

Projects

No projects

    Milestone

    • Datastore FutureNo due date

    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.