-
Notifications
You must be signed in to change notification settings - Fork 200
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
samples(spanner): update samples to use wrappers #890
samples(spanner): update samples to use wrappers #890
Conversation
- use the new wrapper instead of initialising the generated client directly
- use the new wrapper instead
@NivedhaSenthil Can you please fix the CI errors? Also, why do we put a Do Not Merge label for this PR? |
@hengfengli Thanks for taking a look at this... the changes for the admin wrapper is not released yet.. hence wanted to wait till it is released. Also the test failures are due to the same reason as it is using the latest released version of Created a PR to track on the completed samples and get some early feedback. |
version_retention_period = "7d" | ||
database_admin_client = Google::Cloud::Spanner::Admin::Database.database_admin project_id: project_id | ||
|
||
instance_path = database_admin_client.instance_path project: project_id, instance: instance_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we don't store project_id in database_admin_client
, right? We have to pass project_id
again here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, we can remove it from client creation 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Skipping backup tests due to timeout issue. To be fixed as part of #893 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Checklist
bundle exec rubocop
Closes #891