Skip to content

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

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

Merged
merged 3 commits into from
Sep 5, 2024

Conversation

sgp
Copy link
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 as code owners 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
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
8 checks passed
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