Audit use/structure of data classes

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

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

評価

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

調査の方向性

Start by reviewing issues #11 and #32, then audit the data-class usages and the AerieClient methods that expose them. Compare the API and client classes, including to_api_create and from_api_read mappings, against the proposed serialization rules. Done means the class boundaries and usage conventions are codified and the affected usages follow them.

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

説明

breaking change enhancement question

Inspired by the goal of cleaning up the data classes as much as possible (see #11 and #32), we should audit everywhere they're used, everywhere they aren't but should, and how they're structured.

I'm particularly interested in codifying the difference between the "API" and "client" data classes. My current ideas are:

  • "API" data classes should contain exclusively serializable data types so that we don't need any custom (de)serialization defined for those classes. They could use default JSON serialization and go straight into the GQL queries.
  • Any custom mapping would happen in the "client" to_api_create and from_api_read methods.
  • Only "client" data classes would be exposed as input/return types on AerieClient methods. "API" data classes are only used behind the scenes.
  • "API" data classes are then only created/used in cases where we need custom (de)serialization. Otherwise, we can directly use the "client" data class.
主要言語
Python
スター
5
フォーク
7
平均マージ
3日 14時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

NASA-AMMOS/plandev-cli のほかの issue

NASA-AMMOS/plandev-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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