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 — feat: add support for updateDatabase in Cloud Spanner by aayushimalik · Pull Request #914 · googleapis/python-spanner

This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Conversation

@aayushimalik

@aayushimalik aayushimalik commented Mar 16, 2023

Copy link
Copy Markdown
Contributor

No description provided.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aayushimalik
feat: drop database protection
e4163d0
@aayushimalik
aayushimalik requested review from a team March 16, 2023 11:22
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/python-spanner API. labels Mar 16, 2023
grace223
grace223 approved these changes Mar 18, 2023
View reviewed changes
Comment thread google/cloud/spanner_v1/database.py
from google.iam.v1 import options_pb2
from google.protobuf.field_mask_pb2 import FieldMask

from google.cloud.spanner_admin_database_v1 import CreateDatabaseRequest

@grace223 grace223 Mar 18, 2023

Copy link
Copy Markdown

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.

Thanks

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread tests/unit/test_database.py
import mock
from google.api_core import gapic_v1
from google.cloud.spanner_admin_database_v1 import Database as DatabasePB
from google.cloud.spanner_v1.param_types import INT64

@grace223 grace223 Mar 18, 2023

Copy link
Copy Markdown

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.

Thanks

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@aayushimalik
aayushimalik requested a review from a team as a code owner March 21, 2023 09:49
@aayushimalik
aayushimalik requested a review from parthea March 21, 2023 09:49
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Mar 21, 2023
@snippet-bot

snippet-bot Bot commented Mar 21, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 1 region tag.
  • samples/samples/snippets.py:199, tag spanner_update_database

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aayushimalik
aayushimalik force-pushed the drop-database-protection branch from 9ca2103 to e4163d0 Compare March 21, 2023 10:26
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: l Pull request size is large. labels Mar 21, 2023
aayushimalik added 2 commits March 21, 2023 11:09
@aayushimalik
feat: drop database protection sample and sample test
1d64d5d
@aayushimalik
Make sample changes follow client lib spec
ee653cd
rajatbhatta
rajatbhatta reviewed Apr 4, 2023
View reviewed changes
Comment thread google/cloud/spanner_v1/database.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@rajatbhatta rajatbhatta changed the title feat: drop database protection feat: add support for updateDatabase in Cloud Spanner Apr 4, 2023
@rajatbhatta
rajatbhatta requested a review from asthamohta April 4, 2023 17:21
asthamohta
asthamohta reviewed Apr 4, 2023
View reviewed changes
Comment thread google/cloud/spanner_v1/database.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

asthamohta
asthamohta reviewed Apr 4, 2023
View reviewed changes
Comment thread google/cloud/spanner_v1/database.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

aayushimalik added 3 commits April 12, 2023 05:32
@aayushimalik
Reviewer suggested changes.
167f68b
@aayushimalik
Add test for invalid UpdateDatabaseRequest.
b27fd76
@aayushimalik
Update field name drop_protection_enabled to enable_drop_protection.
545cd8c
asthamohta
asthamohta reviewed Apr 21, 2023
View reviewed changes
Comment thread google/cloud/spanner_v1/database.py
self._database_dialect = database_dialect
self._database_role = database_role
self._enable_drop_protection = enable_drop_protection
self._reconciling = False

@asthamohta asthamohta Apr 21, 2023

Copy link
Copy Markdown
Contributor

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.

I can't see any place where this value is updated?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@aayushimalik aayushimalik Apr 21, 2023

Copy link
Copy Markdown
Contributor Author

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.

This is updated at line 359 of this file, using the property setter.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@asthamohta asthamohta Apr 26, 2023

Copy link
Copy Markdown
Contributor

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.

I am referring to reconciling

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
asthamohta
asthamohta reviewed Apr 21, 2023
View reviewed changes
Comment thread google/cloud/spanner_v1/database.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

asthamohta
asthamohta reviewed Apr 21, 2023
View reviewed changes
Comment thread tests/system/test_database_api.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@aayushimalik
Formatting fix.
430543c
@asthamohta asthamohta added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Apr 26, 2023
asthamohta
asthamohta approved these changes Apr 26, 2023
View reviewed changes
aayushimalik added 2 commits May 11, 2023 09:41
@aayushimalik
Update the reconciling field when reloading a database.
babd236
@aayushimalik
Merge remote-tracking branch 'googleapi-python-spanner/main' into dro…
5420284
…p-database-protection

# Conflicts:
#	google/cloud/spanner_v1/database.py
@rajatbhatta rajatbhatta added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels May 12, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 15, 2023
@rajatbhatta
linting fix
a700a02
@rajatbhatta
rajatbhatta enabled auto-merge (squash) May 16, 2023 06:24
@rajatbhatta rajatbhatta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 16, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 16, 2023
@rajatbhatta
Merge branch 'main' into drop-database-protection
effbfbf
@rajatbhatta rajatbhatta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 16, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 16, 2023
rajatbhatta and others added 3 commits May 16, 2023 09:10
@rajatbhatta
Merge branch 'main' into drop-database-protection
8ad7820
@rajatbhatta
Merge branch 'googleapis:main' into drop-database-protection-samples
23c2014
@rajatbhatta
Merge branch 'drop-database-protection-samples' into drop-database-pr…
970cb8a
…otection
@rajatbhatta

rajatbhatta commented May 16, 2023

Copy link
Copy Markdown
Contributor

Added samples from #917 to here (for single merge). Both PRs are approved.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@rajatbhatta rajatbhatta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 16, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 16, 2023
@rajatbhatta rajatbhatta added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 16, 2023
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 16, 2023
@rajatbhatta
rajatbhatta merged commit 6c7ad29 into googleapis:main May 16, 2023
@release-please release-please Bot mentioned this pull request May 16, 2023
chore(main): release 3.35.0 #944
Merged
@rajatbhatta rajatbhatta mentioned this pull request May 16, 2023
samples: add support for updateDatabase in Cloud Spanner #917
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@parthea parthea Awaiting requested review from parthea parthea is a code owner automatically assigned from googleapis/python-samples-reviewers
3 more reviewers
@rajatbhatta rajatbhatta rajatbhatta left review comments
@asthamohta asthamohta asthamohta approved these changes
@grace223 grace223 grace223 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: spanner Issues related to the googleapis/python-spanner API. size: m Pull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@aayushimalik @rajatbhatta @asthamohta @grace223 @yoshi-kokoro
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.