Title: set_default_project living inside each service module is confusing · Issue #838 · googleapis/google-cloud-python · GitHub
Open Graph Title: set_default_project living inside each service module is confusing · Issue #838 · googleapis/google-cloud-python
X Title: set_default_project living inside each service module is confusing · Issue #838 · googleapis/google-cloud-python
Description: Looks like inside each service module (let's say datastore and pubsub) we import _helpers.set_default_project. If that's the case, I'd expect the following code snippet to have different projects set for the different services: from gclo...
Open Graph Description: Looks like inside each service module (let's say datastore and pubsub) we import _helpers.set_default_project. If that's the case, I'd expect the following code snippet to have different projects s...
X Description: Looks like inside each service module (let's say datastore and pubsub) we import _helpers.set_default_project. If that's the case, I'd expect the following code snippet to have differen...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/838
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"set_default_project living inside each service module is confusing","articleBody":"Looks like inside each service module (let's say `datastore` and `pubsub`) we import `_helpers.set_default_project`.\n\nIf that's the case, I'd expect the following code snippet to have different projects set for the different services:\n\n``` python\nfrom gcloud import datastore, pubsub\ndatastore.set_default_project('datastore-project')\npubsub.set_default_project('pubsub-project')\n\nassert 'datastore-project' == datastore.get_default_project()\nassert 'pubsub-project' == pubsub.get_default_project()\n```\n\nIf that's not the case, we need to figure out some other way of doing this... maybe moving the helper method into the top level as `gcloud.set_default_project()`...\n","author":{"url":"https://github.com/jgeewax","@type":"Person","name":"jgeewax"},"datePublished":"2015-04-17T18:48:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":10},"url":"https://github.com/838/google-cloud-python/issues/838"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d17a5538-4204-0229-d8b0-7692715be14b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D066:2F704B:7D5752:AB110D:6A4DB38F |
| html-safe-nonce | da72d4fa4c63591299feb177e1b3b3109fe1c82ee0b7987b5f729621af9e92a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDY2OjJGNzA0Qjo3RDU3NTI6QUIxMTBEOjZBNERCMzhGIiwidmlzaXRvcl9pZCI6IjY4MTAwNjM3NjM2NTMxMTI3MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 685d0d84dde92a68ca755ce409dbf9c8191d82f7d50f1467d4e88e0dec589244 |
| hovercard-subject-tag | issue:69195582 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-python/838/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee9f5b5c3b9d72c6df12579609f26152e983db5e4880cd062d6de59f84ac06ad/googleapis/google-cloud-python/issues/838 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee9f5b5c3b9d72c6df12579609f26152e983db5e4880cd062d6de59f84ac06ad/googleapis/google-cloud-python/issues/838 |
| og:image:alt | Looks like inside each service module (let's say datastore and pubsub) we import _helpers.set_default_project. If that's the case, I'd expect the following code snippet to have different projects s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jgeewax |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 32f7b614aca06e6bbd89842b1370df1328264f68 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width