Read and write using different tuple models
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- python
調査の方向性
まず SDK 内の ReadRequestTupleKey、FgaTuple、ClientTuple の定義と使用箇所を追跡し、次に読み取りリクエストと書き込みリクエストのパスを比較します。両方のパスが 1 つのタプルモデルを使用し、呼び出し元がそれらの間でキャストする必要がなくなれば、作業は完了です。
索引モデルが issue の本文から書いたものです。
説明
Checklist
- I agree to the terms within the OpenFGA Code of Conduct.
Describe the problem you'd like to have solved
I added the SDK to our backend yesterday and found that there are two different models being used when reading from the store and writing to the store.
from openfga_sdk import ReadRequestTupleKey, Tuple as FgaTuple
from openfga_sdk.client.models import ClientTuple
What's the reason for this? It would just save us some code to convert between them and make things cleaner with a single model/source of truth in the backend.
Thanks!
Describe the ideal solution
Read and write uses the same model for tuples
Alternatives and current workarounds
Cast in between them when reading, altering, and writing back to the store.
References
No response
Additional context
No response
- 主要言語
- Python
- スター
- 85
- フォーク
- 36
- 平均マージ
- 3時間 8分
- マージ済み PR(30日)
- 3
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openfga/python-sdk のほかの issue
-
openfga/python-sdk#308 · 担当者 1 名 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
openfga/python-sdk#214 · コメント 1 件 · リアクション 1 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
openfga/python-sdk#194 · コメント 2 件 ·
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
openfga/python-sdk#139 · コメント 1 件 ·
-
bug waiting-user-feedback
難易度 2/5 1〜3時間 初心者へのやさしさ 42/100
openfga/python-sdk#95 · コメント 4 件 ·
openfga/python-sdk の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·