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 — fix: from_string method of blob and bucket class by HemangChothani · Pull Request #290 · googleapis/python-storage

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

Conversation

@HemangChothani

@HemangChothani HemangChothani commented Oct 8, 2020

Copy link
Copy Markdown
Contributor

Fixes #286

Sorry, something went wrong.

Uh oh!

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

All reactions
@HemangChothani
fix: from_string method of blob and bucket class
a7211d4
@HemangChothani
HemangChothani requested review from frankyn and tseaver October 8, 2020 12:43
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 8, 2020
tseaver
tseaver suggested changes Oct 8, 2020
View reviewed changes

@tseaver tseaver left a comment

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.

Rather than changing the signature of Blob.from_string, the fix should be to change Blob._do_multipart_upload (and likewise Blob._initiate_resumable_upload) to use the passed-in client. The caller (Blob._do_upload) should likewise call self._require_client to use its own _client attribute as a fallback for when no explicit client is passed in.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread google/cloud/storage/blob.py Resolved

Uh oh!

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

@HemangChothani
fix: revert changes and apply another approach
a83bbdf
tseaver
tseaver suggested changes Oct 9, 2020
View reviewed changes
Comment thread google/cloud/storage/client.py Resolved

Uh oh!

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

Comment thread tests/unit/test_blob.py Resolved

Uh oh!

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

HemangChothani added 4 commits October 12, 2020 15:34
@HemangChothani
fix: add extra unit tests
054c633
@HemangChothani
Merge branch 'master' of https://github.com/googleapis/python-storage …
59a43bc
…into storage_issue_286
@HemangChothani
Merge branch 'master' of https://github.com/googleapis/python-storage …
a5cc83a
…into storage_issue_286
@HemangChothani
Merge branch 'master' of https://github.com/googleapis/python-storage …
2d6c727
…into storage_issue_286
@HemangChothani

HemangChothani commented Oct 29, 2020

Copy link
Copy Markdown
Contributor Author

@tseaver PTAL!

All reactions

Sorry, something went wrong.

Uh oh!

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

tseaver
tseaver approved these changes Nov 11, 2020
View reviewed changes
@tseaver
Merge branch 'master' into storage_issue_286
82c4370
@tseaver tseaver added the automerge Merge the pull request once unit tests and other checks pass. label Nov 11, 2020
@gcf-merge-on-green
gcf-merge-on-green Bot merged commit d457ce3 into googleapis:master Nov 11, 2020
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Nov 11, 2020
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
@HemangChothani @cojenco
fix: from_string method of blob and bucket class (googleapis#290)
a73e91e
Fixes googleapis#286
cojenco pushed a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
@HemangChothani @cojenco
fix: from_string method of blob and bucket class (googleapis#290)
3ae3a06
Fixes googleapis#286
@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
1 more reviewer
@tseaver tseaver tseaver 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

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Blob upload_from_string AttributeError when using client argument

Uh oh!

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

2 participants

@HemangChothani @tseaver
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.