googleapis / googleapis/python-aiplatform
non-intuitive behaviour of list method
- 主要言語
- Python
- スター
- 905
- フォーク
- 465
- 平均マージ
- 1日 13時間
- マージ済み PR(30日)
- 44
説明
The list method of PipelineJobSchedule class will revert to using the aiplatform init values for project and region if none are passed explicitly.
This is counter-intuitive as when we instantiate the class PipelineJobSchedule we can pass these params that will then be ignored in the list method but instead will be used when using the create method.
This can cause a source of confusion and bugs in multi-project-deployment environments.
A better behaviour when calling the list method would be:
1. use explicit values
2. if not available use the values of the self object if such is instantiated
3. if not available use the default of the environment
Reference:
https://github.com/googleapis/python-aiplatform/blob/5025d03d808971102995113a871c2ef78c2fb013/google/cloud/aiplatform/pipeline_job_schedules.py#L271
コントリビューションガイド
調査の方向性
google/cloud/aiplatform/pipeline_job_schedules.py の271行目付近から始め、PipelineJobSchedule.list が初期化および create と比較して project と region をどのように解決するかを調べてください。明示的な値、self オブジェクトの値、環境のデフォルト値について解決順序を確認し、それらのケースの coverage を追加または更新してください。明示的な引数がない場合に list がコンストラクターの値を無視しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- google-cloud, python
- 領域
- ai
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100