Skip to content

fix(datastore): remove namespace from Key.String() (#10684)#10823

Merged
bhshkh merged 3 commits intogoogleapis:mainfrom
sgp:datastore-unstring-namespace
Sep 5, 2024
Merged

fix(datastore): remove namespace from Key.String() (#10684)#10823
bhshkh merged 3 commits intogoogleapis:mainfrom
sgp:datastore-unstring-namespace

Conversation

@sgp
Copy link
Copy Markdown
Contributor

@sgp sgp commented Sep 5, 2024

Datastore namespaces may be sensitive, and it's best not to emit them. See #10684.

Provide a datastore.Key.StringWithNamespace() as an alternative, and use this version internally, which preserves the fix from #7829.

Datastore namespaces may be sensitive, and it's best not to emit
them.

Provide a `datastore.Key.StringWithNamespace()` as an alternative,
and use this version internally, which preserves the fix from
googleapis#7829.
@sgp sgp requested review from a team September 5, 2024 15:10
@product-auto-label product-auto-label bot added the api: datastore Issues related to the Datastore API. label Sep 5, 2024
@sgp
Copy link
Copy Markdown
Contributor Author

sgp commented Sep 5, 2024

@bhshkh This is effectively the same as #10685 with the fixes you asked for already squashed. I had to reopen this PR on my on personal fork so that I could give Google permission to update the base branch, etc.

sgp and others added 2 commits September 5, 2024 11:26
…#10684)

fix(datastore): remove namespace from Key.String()

Fixes googleapis#10684.

Datastore namespaces may be sensitive, and it's best not to emit them.

Restores the behavior of `Key.String` prior to googleapis#8363, but maintains the
fix for googleapis#7829 by providing an internal implementation that does provide
the namespace.
@bhshkh bhshkh enabled auto-merge (squash) September 5, 2024 17:45
@bhshkh bhshkh added kokoro:force-run Add this label to force Kokoro to re-run the tests. kokoro:run Add this label to force Kokoro to re-run the tests. labels Sep 5, 2024
@kokoro-team kokoro-team removed kokoro:run Add this label to force Kokoro to re-run the tests. kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Sep 5, 2024
@bhshkh bhshkh merged commit 40229e6 into googleapis:main Sep 5, 2024
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants