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 if*generation*match args into Bucket.delete_blobs() by IlyaFaer · Pull Request #130 · googleapis/python-storage

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

Conversation

@IlyaFaer

@IlyaFaer IlyaFaer commented May 5, 2020

Copy link
Copy Markdown

Towards #127

Sorry, something went wrong.

Uh oh!

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

All reactions
IlyaFaer added 11 commits May 1, 2020 12:19
IlyaFaer
feat: add ifMetageneration*Match support, pt1
3fa6245
IlyaFaer
fix unit tests, add test for helper
4cbad43
IlyaFaer
fix unit tests
b905487
IlyaFaer
add generation match args into more methods
ddecf53
IlyaFaer
feat: add if*generation*Match support, pt2
74961fa
IlyaFaer
Lint fix.
7e08361
IlyaFaer
delete "more than one set "checks
6f9f910
IlyaFaer
del excess import
ff26d2f
IlyaFaer
Merge branch 'metageneration_match_pt1' into metageneration_match_pt2
551df43
IlyaFaer
delete "more than one set" checks
1f4d9c1
IlyaFaer
feat: add if*generation*match args into Bucket.delete_blobs()
42fd268
@IlyaFaer IlyaFaer added api: storage Issues related to the googleapis/python-storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels May 5, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 5, 2020
@IlyaFaer IlyaFaer changed the title Delete blobs generation match feat: add if*generation*match args into Bucket.delete_blobs() May 5, 2020
@frankyn frankyn mentioned this pull request May 5, 2020
Support If*generation preconditions #127
Closed
@IlyaFaer

IlyaFaer commented May 5, 2020

Copy link
Copy Markdown
Author

This should be merged only after merging #123, as this branch based on the one from PR 123.

All reactions

Sorry, something went wrong.

Uh oh!

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

@IlyaFaer IlyaFaer added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 5, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 5, 2020
IlyaFaer
IlyaFaer commented May 5, 2020
View reviewed changes
Comment thread google/cloud/storage/bucket.py
if_generation_not_match=next(if_generation_not_match, None),
if_metageneration_match=next(if_metageneration_match, None),
if_metageneration_not_match=next(if_metageneration_not_match, None),
)

@IlyaFaer IlyaFaer May 5, 2020 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
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.

In this method we're converting args into iterators to be able to take next item (or None if there is no next item, or items at all) with a single line.

Sorry, something went wrong.

Uh oh!

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

All reactions
@IlyaFaer
IlyaFaer requested review from crwilcox and frankyn May 5, 2020 14:01
@IlyaFaer
IlyaFaer marked this pull request as ready for review May 5, 2020 14:01
@IlyaFaer

IlyaFaer commented May 5, 2020

Copy link
Copy Markdown
Author

I don't see any system tests for this method. Maybe it should be added to check generation match args are working fine?

All reactions

Sorry, something went wrong.

Uh oh!

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

frankyn and others added 6 commits May 5, 2020 09:59
@frankyn
Merge branch 'master' into metageneration_match_pt1
0a34086
IlyaFaer
feat: add helper for bucket bound hostname URLs
6deb7ba
IlyaFaer
Revert "feat: add helper for bucket bound hostname URLs"
ae516da
This reverts commit b982094.
IlyaFaer
lint fix
8ecf93a
IlyaFaer
Merge branch 'master' into metageneration_match_pt1
e1b67b5
IlyaFaer
rename the helper; add error raising in case of wront parameters type
bd5b54f
IlyaFaer added 3 commits May 12, 2020 10:57
IlyaFaer
Merge branch 'metageneration_match_pt2' into metageneration_match_pt1
ea37318
IlyaFaer
Merge branch 'metageneration_match_pt1' of https://github.com/q-logic…
9d19e15
…/python-storage into metageneration_match_pt1
IlyaFaer
Merge branch 'metageneration_match_pt1' into delete_blobs_generation_…
29c435e
…match
@IlyaFaer IlyaFaer mentioned this pull request May 12, 2020
feat: add *generation*match args into Blob.compose() #122
Merged
@IlyaFaer IlyaFaer added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 13, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 13, 2020
@andrewsg

andrewsg commented May 20, 2020

Copy link
Copy Markdown
Contributor

Since #123 has been merged, I be ready to review this once the branch is updated and conflicts resolved. Thanks!

All reactions

Sorry, something went wrong.

Uh oh!

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

IlyaFaer added 3 commits May 21, 2020 11:07
IlyaFaer
Merge branch 'master' into delete_blobs_generation_match
d8ca98d
IlyaFaer
add args length check, add more unit tests
fe0bb8c
IlyaFaer
erase empty line left from conflict resolving
fabbfbf
@IlyaFaer

IlyaFaer commented May 21, 2020

Copy link
Copy Markdown
Author

@andrewsg, I've pushed some changes to check if generation match args length differs from blobs list (as we done in compose()) as well.

All reactions

Sorry, something went wrong.

Uh oh!

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

@IlyaFaer
IlyaFaer requested a review from andrewsg May 21, 2020 10:15
andrewsg
andrewsg suggested changes Jun 2, 2020
View reviewed changes
Comment thread google/cloud/storage/bucket.py Resolved

Uh oh!

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

IlyaFaer
add arg name
f0190bd
@andrewsg andrewsg added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 8, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 8, 2020
@frankyn
Merge branch 'master' into delete_blobs_generation_match
90da4de
andrewsg
andrewsg approved these changes Jun 15, 2020
View reviewed changes
@frankyn
Merge branch 'master' into delete_blobs_generation_match
5f696bf
@frankyn frankyn added kokoro:force-run Add this label to force Kokoro to re-run the tests. automerge Merge the pull request once unit tests and other checks pass. and removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Jun 15, 2020
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit 5e60991 into googleapis:master Jun 15, 2020
@IlyaFaer
IlyaFaer deleted the delete_blobs_generation_match branch June 16, 2020 07:17
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
Gurov Ilya @cojenco
feat: add if*generation*match args into Bucket.delete_blobs() (googl…
393c73c
…eapis#130)

Towards googleapis#127
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
Gurov Ilya @cojenco
feat: add if*generation*match args into Bucket.delete_blobs() (googl…
16a66bf
…eapis#130)

Towards googleapis#127
@release-please release-please Bot mentioned this pull request Jan 12, 2022
chore(main): release 3.0.0 #688
Closed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@frankyn frankyn Awaiting requested review from frankyn
@crwilcox crwilcox Awaiting requested review from crwilcox
1 more reviewer
@andrewsg andrewsg andrewsg 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: storage Issues related to the googleapis/python-storage API. automerge Merge the pull request once unit tests and other checks pass. cla: yes This human has signed the Contributor License Agreement. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

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

@IlyaFaer @andrewsg @frankyn @googlebot @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.