Skip to content

Impossible to set non-default storage project since 0.5.0 #832

@mwitkow

Description

@mwitkow

The upgrade to 0.5.0 broke the public API without notes in the Release by removing storage.get_connection(project='foo') function.

Moreover, it seems that the Connection class no longer has a project parameter. Neither storage.get_bucket nor storage.lookup_bucket take project as a parameter. Curiously, you can override it in create_bucket and list_buckets.

The only way to set a project for these is through _helpers.set_default_project, which makes it incredibly hard to operate on buckets in multiple projects, since you need to set the default all the time, exposing yourself to race conditions in case of multithreading.

Can we put back the project into Connection? AFAIK the Connection's credentials only make sense for a given project anyway.

Metadata

Metadata

Assignees

Labels

api: storageIssues related to the Cloud Storage API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions