Shopify / Shopify/shopify_python_api

Get rid of Class variable storage and move to instance storage

オープン
#191 コメント 3 件 リアクション 9 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

feature request
主要言語
Python
スター
1.4k
フォーク
388
平均マージ
5時間 39分
マージ済み PR(30日)
1

説明

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 session and store them in memory.
For every request to the REST server I have to clear the current class variables and set for requested environment.

Additionally, this is not thread safe. If two REST requests arrive at the same time for different endpoints, they will clobber each other.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、REST リクエストで user、password、site_uri がどこに保存され、どのようにアクセスされるかを追跡し、次に異なる Shopify 環境向けにセッションがどのように作成・選択されるかを確認します。production と QA のセッションがメモリ上で共存でき、並行するリクエストが互いの設定を上書きしなくなれば完了です。両方のケースのカバレッジを追加するか実行してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api, backend
issue の種類
リファクタリング
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。