googleapis / googleapis/python-aiplatform
non-intuitive behaviour of list method
- Ngôn ngữ chính
- Python
- Star
- 907
- Fork
- 466
- Merge trung bình
- 1 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 44
Mô tả
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
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu tại google/cloud/aiplatform/pipeline_job_schedules.py, khoảng dòng 271, và kiểm tra cách PipelineJobSchedule.list phân giải project và region so với quá trình khởi tạo và create. Xác minh thứ tự phân giải đối với các giá trị được chỉ định tường minh, các giá trị của đối tượng self và các giá trị mặc định của môi trường, đồng thời thêm hoặc cập nhật coverage cho các trường hợp đó. Hoàn thành có nghĩa là list không còn bỏ qua các giá trị của constructor khi thiếu các đối số tường minh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- google-cloud, python
- Lĩnh vực
- ai
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 48/100