hasadna / hasadna/knesset-data-python
dataservice should support related table field
オープン
- 主要言語
- Python
- スター
- 2
- フォーク
- 14
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
@OriHoch:
> maybe it's worth to create a new class for this type of fields
something like:
("committee", KnessetdataServiceRelatedField("CommitteeID", dataservice_class=Committee))
which will handle it automatically
but need to make sure by default it doesn't fetch the related object - only when user requests it
so I'm not sure what's the best way to implement it..
コントリビューションガイド
調査の方向性
まず dataservice フィールドの実装と、関連オブジェクトの処理を探します。この issue ではファイルやテストは指定されていません。提案されているフィールド API と lazy-loading の動作をメンテナーと確認し、関連テーブルのフィールドをサポートし、デフォルトでは関連オブジェクトを取得せず、要求された場合にのみ取得することを完了条件とします。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- api, backend, databases
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100