apache / apache/libcloud

[Proposal] Add `Optional` (default `None`) to Node classes

オープン
#1,679 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
api: compute proposal / rfc
主要言語
Python
スター
2.1k
フォーク
931
平均マージ
1日 2時間
マージ済み PR(30日)
4

説明

## Proposal

Some classes have attributes that are not required for building a Node.
For example, we don't need the `NodeSize.bandwidth` argument to create a new node. Only the `id` is necessary. But we still have to instanciate the `NodeSize` class with `bandwidth=None` since it's a required argument.
It could be possible to add a default `None` value to each optional argument to make things simpler when using Sizes/Images/Locations.

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず Node クラス、特に NodeSize と、提案で言及されている Sizes、Images、Locations クラスを確認します。どのコンストラクター引数がオプションかを特定し、それらの値を明示的に渡さなくてもノードをインスタンス化できることを確認します。ただし、id などの必須属性は引き続き必要です。

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

評価

技術スタック
python
領域
cloud
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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