Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@tseaver
Copy link
Contributor

@tseaver tseaver commented Jun 8, 2021

Toward #38.

  • Use None as default retry for Client._patch_resource and Client._put_resource helpers (they can only be idempotent conditionally, so the caller needs to configure the retry).
  • Remove retry argument from ACL.save, ACL.save_predefined, and ACL.clear (ACLs cannot be saved idempotently).
  • Likewise remove retry argument from Bucket.make_public, Bucket.make_private, Blob.make_public, and Blob.make_private, which only perform saves on ACLs.

@tseaver tseaver added the priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. label Jun 8, 2021
@tseaver tseaver requested review from a team and andrewsg June 8, 2021 16:54
@tseaver tseaver requested a review from a team as a code owner June 8, 2021 16:54
@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/python-storage API. label Jun 8, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 8, 2021
google/cloud/storage/acl.py Show resolved Hide resolved
@tseaver tseaver mentioned this pull request Jun 8, 2021
Copy link
Contributor

@andrewsg andrewsg left a comment

Choose a reason for hiding this comment

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

Thanks!

@tseaver tseaver merged commit 2232f38 into master Jun 8, 2021
@tseaver tseaver deleted the 38-apply-idempotency-policies branch June 8, 2021 17:46
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* fix: use 'retry=None' as default for 'Client._put_resource'
* fix: use 'retry=None' as default for 'Client._patch_resource'
* fix: force 'retry=None' for 'ACL.{save,save_predefined,clear}'
* fix: remove 'retry' arg from 'Bucket.make_public'
* fix: remove 'retry' arg from 'Bucket.make_private'
* fix: remove 'retry' arg from 'Blob.make_public'
* fix: remove 'retry' arg from 'Blob.make_private'

Per idempotency policy.
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
* fix: use 'retry=None' as default for 'Client._put_resource'
* fix: use 'retry=None' as default for 'Client._patch_resource'
* fix: force 'retry=None' for 'ACL.{save,save_predefined,clear}'
* fix: remove 'retry' arg from 'Bucket.make_public'
* fix: remove 'retry' arg from 'Bucket.make_private'
* fix: remove 'retry' arg from 'Blob.make_public'
* fix: remove 'retry' arg from 'Blob.make_private'

Per idempotency policy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: storage Issues related to the googleapis/python-storage API. cla: yes This human has signed the Contributor License Agreement. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.