googleapis / googleapis/python-aiplatform

non-intuitive behaviour of list method

Offen
#4,578 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
api: vertex-ai
Vorherrschende Sprache
Python
Sterne
905
Forks
465
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
44

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.