get_store should have an optional store_id parameter
还没有人认领这个 Issue。
评估
调研方向
从 OpenFgaClient.get_store 开始,查看客户端方法使用的请求选项。比较现有的 authorizationModelId 覆盖行为,然后检查相关测试,以验证每个请求的 storeId 会覆盖已配置的 store,并且已配置的值仍作为回退值。
由索引模型根据 Issue 内容生成。
描述
In the current implementation, get_store return the OpenFGA store specified in the client_api configuration.
Except by listing all the stores with list_stores, I don't see any other way to get a specific store different of the one defined in the configuration.
A way to arrange that would be to add an optional store_id parameter to get_store.
Part of https://github.com/openfga/sdk-generator/issues/118
We should do something similar to what @jimmyjames mentions here:
https://github.com/openfga/java-sdk/issues/150#issuecomment-2666996341
- for requests that use the storeId in the path, update the request options object to include a
storeId- In
OpenFgaClient, if the options are not null andstoreIdis non-null and non-empty, use that to build the path. Otherwise, use thestoreIdconfigured on the client- Update the tests to verify that the
storeIdcan be overridden per request, and that the value on the client is used if not overridden.
In general, it should be pretty similar to how the
authorizationModelIdis allowed to be overridden per request.
- 主要语言
- Python
- 星标
- 85
- 派生
- 36
- 平均合并
- 3 小时 8 分钟
- 30 天内合并 PR
- 3
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openfga/python-sdk 的其他 Issue
-
openfga/python-sdk#308 · 已指派 1 人 ·
-
enhancement
难度 5/5 一周以上 新手友好度 30/100
openfga/python-sdk#214 · 1 条评论 · 1 个 reaction ·
-
bug
难度 3/5 1-2 天 新手友好度 55/100
openfga/python-sdk#194 · 2 条评论 ·
-
bug
难度 4/5 3-5 天 新手友好度 32/100
openfga/python-sdk#139 · 1 条评论 ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
openfga/python-sdk#106 · 2 条评论 ·
查看 openfga/python-sdk 的全部 Issue
相似的 Issue
-
bug confirmed issue
难度 2/5 1-3 小时 新手友好度 75/100
open-webui/open-webui#30750 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
-
enhancement
难度 2/5 1-3 小时 新手友好度 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
-
good first issue
难度 1/5 1 小时以内 新手友好度 90/100