graphql-python / graphql-python/graphene-sqlalchemy
Support for Soft Delete?
未關閉
- 主要語言
- Python
- 星號
- 985
- 分支
- 223
- PR 合併指標
- 30 天內沒有已合併 PR
描述
Is there any possibility we can add a feature that allows for soft deletes to be ignored?
https://github.com/graphql-python/graphene-sqlalchemy/blob/db3e9f4c3baad3e62c113d4a9ddd2e3983d324f2/graphene_sqlalchemy/utils.py#L22
I am about to fork this repo so I can add a filter to the query `filter(delete_dt=None)` and that seems like overkill to just add that one line. Is there a simpler way to filter my joins, or potentially a patch we could introduce?
貢獻指南
研究方向
從 graphene_sqlalchemy/utils.py 第 22 行附近開始,追蹤用於 joins 的查詢是如何建立的。issue 沒有指定測試檔案,也沒有確定 API,因此首先釐清可設定的 soft-delete 行為及其適用範圍;當約定的行為由測試涵蓋時,即視為完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- graphql, python, sqlalchemy
- 領域
- api, database
- Issue 類型
- 功能
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100