Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: project/location parsing for nested resources #1700

Merged
merged 15 commits into from
Sep 30, 2022

Conversation

nayaknishant
Copy link
Contributor

@nayaknishant nayaknishant commented Sep 27, 2022

For nested resources like EntityType (Featurestore -> EntityType -> Feature), the project/location needs to be extracted from the full resource name and passed into the client constructor. Adding check to see if parent exists and utility method to extract project and location from the parent resource name.

Fixes b/249363374 and #1684 🦕

@product-auto-label product-auto-label bot added size: s Pull request size is small. api: vertex-ai Issues related to the googleapis/python-aiplatform API. labels Sep 27, 2022
google/cloud/aiplatform/base.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/utils/__init__.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/utils/__init__.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/utils/__init__.py Show resolved Hide resolved
@nayaknishant nayaknishant requested a review from a team as a code owner September 28, 2022 18:25
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Sep 28, 2022
google/cloud/aiplatform/utils/__init__.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/utils/__init__.py Outdated Show resolved Hide resolved
google/cloud/aiplatform/utils/__init__.py Show resolved Hide resolved
@nayaknishant nayaknishant added automerge Merge the pull request once unit tests and other checks pass. and removed automerge Merge the pull request once unit tests and other checks pass. labels Sep 30, 2022
@nayaknishant nayaknishant merged commit 9e1d796 into googleapis:main Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vertex-ai Issues related to the googleapis/python-aiplatform API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants