Title: Get rid of Class variable storage and move to instance storage · Issue #191 · Shopify/shopify_python_api · GitHub
Open Graph Title: Get rid of Class variable storage and move to instance storage · Issue #191 · Shopify/shopify_python_api
X Title: Get rid of Class variable storage and move to instance storage · Issue #191 · Shopify/shopify_python_api
Description: I'm building an admin/monitoring server that handles requests from both out production and qa Shopify store. In the current setup, the user/password/site_uri are stored at the class level, so I can't create a prod session and a qa sessio...
Open Graph Description: I'm building an admin/monitoring server that handles requests from both out production and qa Shopify store. In the current setup, the user/password/site_uri are stored at the class level, so I can...
X Description: I'm building an admin/monitoring server that handles requests from both out production and qa Shopify store. In the current setup, the user/password/site_uri are stored at the class level, so I...
Opengraph URL: https://github.com/Shopify/shopify_python_api/issues/191
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get rid of Class variable storage and move to instance storage","articleBody":"I'm building an admin/monitoring server that handles requests from both out production and qa Shopify store.\r\nIn the current setup, the user/password/site_uri are stored at the class level, so I can't create a prod session and a qa session and store them in memory. \r\nFor every request to the REST server I have to clear the current class variables and set for requested environment.\r\n\r\nAdditionally, this is not thread safe. If two REST requests arrive at the same time for different endpoints, they will clobber each other.\r\n","author":{"url":"https://github.com/corby","@type":"Person","name":"corby"},"datePublished":"2017-04-18T19:19:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/191/shopify_python_api/issues/191"}
| 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:e1ad94c7-d293-07ed-d188-84c18d6134fd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 911A:11141E:1349FE4:19C2B38:69699E12 |
| html-safe-nonce | e8e6d77f8defdd643bff1313b6af65315f7b5f9c08b76edd00bd35f6ddcb4536 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTFBOjExMTQxRToxMzQ5RkU0OjE5QzJCMzg6Njk2OTlFMTIiLCJ2aXNpdG9yX2lkIjoiODE2NjAyOTU0MjIyMDczMzk3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0ea06b428db47ae20c9ed4a1199bee8a314ff7ac89845b79a5dd75b0106e11e2 |
| hovercard-subject-tag | issue:222518165 |
| 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/Shopify/shopify_python_api/191/issue_layout |
| twitter:image | https://avatars.githubusercontent.com/u/8085?s=400&v=4 |
| twitter:card | summary |
| og:image | https://avatars.githubusercontent.com/u/8085?s=400&v=4 |
| og:image:alt | I'm building an admin/monitoring server that handles requests from both out production and qa Shopify store. In the current setup, the user/password/site_uri are stored at the class level, so I can... |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | corby |
| hostname | github.com |
| expected-hostname | github.com |
| None | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| turbo-cache-control | no-preview |
| go-import | github.com/Shopify/shopify_python_api git https://github.com/Shopify/shopify_python_api.git |
| octolytics-dimension-user_id | 8085 |
| octolytics-dimension-user_login | Shopify |
| octolytics-dimension-repository_id | 2249127 |
| octolytics-dimension-repository_nwo | Shopify/shopify_python_api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2249127 |
| octolytics-dimension-repository_network_root_nwo | Shopify/shopify_python_api |
| 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width