Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/python-spanner
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0
Choose a base ref
...
head repository: googleapis/python-spanner
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.1.0
Choose a head ref
  • 16 commits
  • 67 files changed
  • 10 contributors

Commits on Jan 19, 2021

  1. test: unskip list_backup_operations sample (#210)

    Co-authored-by: larkee <larkee@users.noreply.github.com>
    larkee and larkee authored Jan 19, 2021
    Configuration menu
    Copy the full SHA
    fe48b93 View commit details
    Browse the repository at this point in the history
  2. chore(deps): update dependency google-cloud-spanner to v3 (#209)

    [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
    
    This PR contains the following updates:
    
    | Package | Update | Change |
    |---|---|---|
    | [google-cloud-spanner](https://togithub.com/googleapis/python-spanner) | major | `==2.1.0` -> `==3.0.0` |
    
    ---
    
    ### Release Notes
    
    <details>
    <summary>googleapis/python-spanner</summary>
    
    ### [`v3.0.0`](https://togithub.com/googleapis/python-spanner/blob/master/CHANGELOG.md#&#8203;300-httpswwwgithubcomgoogleapispython-spannercomparev210v300-2021-01-15)
    
    [Compare Source](https://togithub.com/googleapis/python-spanner/compare/v2.1.0...v3.0.0)
    
    ##### ⚠ BREAKING CHANGES
    
    -   convert operations pbs into Operation objects when listing operations ([#&#8203;186](https://togithub.com/googleapis/python-spanner/issues/186))
    
    ##### Features
    
    -   add support for instance labels ([#&#8203;193](https://www.github.com/googleapis/python-spanner/issues/193)) ([ed462b5](https://www.github.com/googleapis/python-spanner/commit/ed462b567a1a33f9105ffb37ba1218f379603614))
    -   add support for ssl credentials; add throttled field to UpdateDatabaseDdlMetadata ([#&#8203;161](https://www.github.com/googleapis/python-spanner/issues/161)) ([2faf01b](https://www.github.com/googleapis/python-spanner/commit/2faf01b135360586ef27c66976646593fd85fd1e))
    -   adding missing docstrings for functions & classes  ([#&#8203;188](https://www.github.com/googleapis/python-spanner/issues/188)) ([9788cf8](https://www.github.com/googleapis/python-spanner/commit/9788cf8678d882bd4ccf551f828050cbbb8c8f3a))
    -   autocommit sample ([#&#8203;172](https://www.github.com/googleapis/python-spanner/issues/172)) ([4ef793c](https://www.github.com/googleapis/python-spanner/commit/4ef793c9cd5d6dec6e92faf159665e11d63762ad))
    
    ##### Bug Fixes
    
    -   convert operations pbs into Operation objects when listing operations ([#&#8203;186](https://www.github.com/googleapis/python-spanner/issues/186)) ([ed7152a](https://www.github.com/googleapis/python-spanner/commit/ed7152adc37290c63e59865265f36c593d9b8da3))
    -   Convert PBs in system test cleanup ([#&#8203;199](https://www.github.com/googleapis/python-spanner/issues/199)) ([ede4343](https://www.github.com/googleapis/python-spanner/commit/ede4343e518780a4ab13ae83017480d7046464d6))
    -   **dbapi:** autocommit enabling fails if no transactions begun ([#&#8203;177](https://www.github.com/googleapis/python-spanner/issues/177)) ([e981adb](https://www.github.com/googleapis/python-spanner/commit/e981adb3157bb06e4cb466ca81d74d85da976754))
    -   **dbapi:** executemany() hiding all the results except the last ([#&#8203;181](https://www.github.com/googleapis/python-spanner/issues/181)) ([020dc17](https://www.github.com/googleapis/python-spanner/commit/020dc17c823dfb65bfaacace14d2c9f491c97e11))
    -   **dbapi:** Spanner protobuf changes causes KeyError's ([#&#8203;206](https://www.github.com/googleapis/python-spanner/issues/206)) ([f1e21ed](https://www.github.com/googleapis/python-spanner/commit/f1e21edbf37aab93615fd415d61f829d2574916b))
    -   remove client side gRPC receive limits ([#&#8203;192](https://www.github.com/googleapis/python-spanner/issues/192)) ([90effc4](https://www.github.com/googleapis/python-spanner/commit/90effc4d0f4780b7a7c466169f9fc1e45dab8e7f))
    -   Rename to fix "Mismatched region tag" check ([#&#8203;201](https://www.github.com/googleapis/python-spanner/issues/201)) ([c000ec4](https://www.github.com/googleapis/python-spanner/commit/c000ec4d9b306baa0d5e9ed95f23c0273d9adf32))
    
    ##### Documentation
    
    -   homogenize region tags ([#&#8203;194](https://www.github.com/googleapis/python-spanner/issues/194)) ([1501022](https://www.github.com/googleapis/python-spanner/commit/1501022239dfa8c20290ca0e0cf6a36e9255732c))
    -   homogenize region tags pt 2 ([#&#8203;202](https://www.github.com/googleapis/python-spanner/issues/202)) ([87789c9](https://www.github.com/googleapis/python-spanner/commit/87789c939990794bfd91f5300bedc449fd74bd7e))
    -   update CHANGELOG breaking change comment ([#&#8203;180](https://www.github.com/googleapis/python-spanner/issues/180)) ([c7b3b9e](https://www.github.com/googleapis/python-spanner/commit/c7b3b9e4be29a199618be9d9ffa1d63a9d0f8de7))
    
    </details>
    
    ---
    
    ### Renovate configuration
    
    :date: **Schedule**: At any time (no schedule defined).
    
    :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
    
    :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
    
    :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again.
    
    ---
    
     - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box
    
    ---
    
    This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/python-spanner).
    renovate-bot authored Jan 19, 2021
    Configuration menu
    Copy the full SHA
    283ea3d View commit details
    Browse the repository at this point in the history

Commits on Jan 27, 2021

  1. test(dbapi): add retry to autocommit sample to reduce flakiness (#214)

    Co-authored-by: larkee <larkee@users.noreply.github.com>
    larkee and larkee authored Jan 27, 2021
    Configuration menu
    Copy the full SHA
    bc38664 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2021

  1. Configuration menu
    Copy the full SHA
    be27507 View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2021

  1. test: make system test timeout configurable and default to 60 seconds (…

    …#217)
    
    b/173067462
    
    It seems 30 seconds are too short for mtls test (which uses the system test, and runs on an internal platform). This makes the mtls test very flaky. This PR introduces a `SPANNER_OPERATION_TIMEOUT_IN_SECONDS` env var to make the timeout configurable. 
    
    The default value is now 60 seconds.
    arithmetic1728 authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    d790cfb View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2021

  1. test: fix credential scope assertions (#223)

    The assertions for credential scope in the `client` unit tests were broken by [a PR in the auth library](googleapis/google-auth-library-python#665). This does raise the question of whether we should be asserting the scopes like this in this library.
    
    This PR fixes the assertions. Removal of these assertions can be done in a separate PR if it is decided they don't belong in this library.
    larkee authored Feb 5, 2021
    Configuration menu
    Copy the full SHA
    05c3ad9 View commit details
    Browse the repository at this point in the history
  2. chore: add support for commit stats and PITR (via synth) (#204)

    This PR was generated using Autosynth. 🌈
    
    Synth log will be available here:
    https://source.cloud.google.com/results/invocations/3b4457c8-4080-407a-9a6d-4a48ddcea154/targets
    
    - [ ] To automatically regenerate this PR, check this box.
    
    PiperOrigin-RevId: 354996675
    Source-Link: googleapis/googleapis@20712b8
    PiperOrigin-RevId: 352816749
    Source-Link: googleapis/googleapis@ceaaf31
    PiperOrigin-RevId: 350246057
    Source-Link: googleapis/googleapis@5206824
    yoshi-automation authored Feb 5, 2021
    Configuration menu
    Copy the full SHA
    1f80a39 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2021

  1. Configuration menu
    Copy the full SHA
    4afea77 View commit details
    Browse the repository at this point in the history
  2. fix(db_api): add dummy lastrowid attribute (#227)

    Ilya Gurov authored Feb 15, 2021
    Configuration menu
    Copy the full SHA
    0375914 View commit details
    Browse the repository at this point in the history

Commits on Feb 17, 2021

  1. fix: use datetime timezone info when generating timestamp strings (#236)

    * fix: use datetime timezone when generating timestamp strings
    
    * style: fix lint
    
    Co-authored-by: larkee <larkee@users.noreply.github.com>
    larkee and larkee authored Feb 17, 2021
    Configuration menu
    Copy the full SHA
    539f145 View commit details
    Browse the repository at this point in the history

Commits on Feb 18, 2021

  1. Configuration menu
    Copy the full SHA
    36b12a7 View commit details
    Browse the repository at this point in the history

Commits on Feb 22, 2021

  1. feat: add support for Point In Time Recovery (PITR) (#148)

    * feat: add PITR-lite support
    
    * fix: remove unneeded conversion for earliest_version_time
    
    * test: fix list_databases list comprehension
    
    * feat: add support for PITR-lite backups (#1)
    
    * Backup changes
    
    * Basic tests
    
    * Add system tests
    
    * Fix system tests
    
    * Add retention period to backup systests
    
    * style: fix lint errors
    
    * test: fix failing backup system tests (#2)
    
    * Remove unnecessary retention period setting
    
    * Fix systests
    
    * Review changes (#3)
    
    * Remove unnecessary retention period setting
    
    * Fix systests
    
    * Review changes
    
    * style: fix lint
    
    Co-authored-by: larkee <larkee@users.noreply.github.com>
    Co-authored-by: Zoe <zoc@google.com>
    3 people authored Feb 22, 2021
    Configuration menu
    Copy the full SHA
    a082e5d View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2021

  1. test: fix PITR restored database version time assertion (#238)

    This PR fixes the assertion to use `metadata.backup_info.version_time` instead of `metadata.backup_info.create_time`. It looks it was passing before the backend correctly supported it and I forgot to re-run the tests before merging #148 (whoops!) and so it is currently failing and preventing #205 from being merged:
    https://source.cloud.google.com/results/invocations/8f0f5dab-1b35-4ce3-bb72-0ce9e79ab89d/targets/cloud-devrel%2Fclient-libraries%2Fpython%2Fgoogleapis%2Fpython-spanner%2Fpresubmit%2Fpresubmit/log
    larkee authored Feb 23, 2021
    Configuration menu
    Copy the full SHA
    fd14b13 View commit details
    Browse the repository at this point in the history
  2. feat: add support to log commit stats (#205)

    * feat: add support for logging commit stats
    
    * test: add commit stats to CommitResponse
    
    * style: fix lint errors
    
    * refactor: remove log formatting
    
    * test: update info arg assertions
    
    * docs: document logger param
    
    * refactor: pass CommitStats via extra kwarg
    
    * fix: ensure logger is unused if commit fails
    
    Co-authored-by: larkee <larkee@users.noreply.github.com>
    larkee and larkee authored Feb 23, 2021
    Configuration menu
    Copy the full SHA
    434967e View commit details
    Browse the repository at this point in the history
  3. perf: improve streaming performance (#240)

    * perf: improve streaming performance by using raw pbs
    
    * refactor: remove unused import
    
    Co-authored-by: larkee <larkee@users.noreply.github.com>
    larkee and larkee authored Feb 23, 2021
    Configuration menu
    Copy the full SHA
    3e35d4a View commit details
    Browse the repository at this point in the history
  4. chore: release 3.1.0 (#237)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Feb 23, 2021
    Configuration menu
    Copy the full SHA
    2bdd21c View commit details
    Browse the repository at this point in the history
Loading