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

doc(spanner): deprecate old MakeConnection() overloads #10284

Merged
merged 1 commit into from
Nov 20, 2022

Conversation

devbww
Copy link
Contributor

@devbww devbww commented Nov 20, 2022

Raise the disfavor for ConnectionOptions and SessionPoolOptions arguments to spanner::MakeConnection() from @note to @deprecated.

Also removed some stale inclusions of connection_options.h and session_pool_options.h.


This change is Reviewable

Raise the disfavor for `ConnectionOptions` and `SessionPoolOptions`
arguments to `spanner::MakeConnection()` from @note to @deprecated.

Also removed some stale inclusions of `connection_options.h` and
`session_pool_options.h`.
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Nov 20, 2022
@google-cloud-cpp-bot
Copy link
Collaborator

Google Cloud Build Logs
For commit: aa215a23ad93aa4837c72cab44d181246432b9fd

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@codecov
Copy link

codecov bot commented Nov 20, 2022

Codecov Report

Base: 93.84% // Head: 93.84% // Increases project coverage by +0.00% 🎉

Coverage data is based on head (aa215a2) compared to base (7d35ce8).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10284   +/-   ##
=======================================
  Coverage   93.84%   93.84%           
=======================================
  Files        1575     1575           
  Lines      144311   144311           
=======================================
+ Hits       135424   135427    +3     
+ Misses       8887     8884    -3     
Impacted Files Coverage Δ
google/cloud/spanner/client.h 100.00% <ø> (ø)
google/cloud/spanner/internal/defaults.cc 97.18% <ø> (ø)
google/cloud/spanner/internal/defaults_test.cc 100.00% <ø> (ø)
...oud/spanner/internal/metadata_spanner_stub_test.cc 100.00% <ø> (ø)
google/cloud/spanner/internal/session_pool.h 100.00% <ø> (ø)
google/cloud/spanner/internal/spanner_stub.h 100.00% <ø> (ø)
google/cloud/spanner/samples/samples.cc 62.24% <ø> (ø)
...ud/spanner/integration_tests/client_stress_test.cc 84.21% <0.00%> (-0.66%) ⬇️
google/cloud/pubsub/subscriber_connection_test.cc 97.81% <0.00%> (-0.55%) ⬇️
google/cloud/pubsub/samples/samples.cc 90.70% <0.00%> (-0.15%) ⬇️
... and 4 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@devbww devbww marked this pull request as ready for review November 20, 2022 04:04
@devbww devbww requested a review from a team as a code owner November 20, 2022 04:04
@@ -961,8 +961,8 @@ std::shared_ptr<spanner::Connection> MakeConnection(spanner::Database const& db,
* The returned connection object should not be used directly, rather it should
* be given to a `Client` instance, and methods should be invoked on `Client`.
*
* @note Prefer using the `MakeConnection()` overload that accepts
* `google::cloud::Options`.
* @deprecated Please use the `MakeConnection()` overload that accepts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add the [[deprecated]] attribute too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I planned to leave that until the old DatabaseAdminClient goes away. But, maybe it would be better to try to kill them both with the same stone. I'll think on it.

@devbww devbww merged commit a8e601a into googleapis:main Nov 20, 2022
@devbww devbww deleted the connection-options branch November 20, 2022 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the Spanner API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants