Skip to content

fix: use the given project and location for feature store parent paths - #7261

Open
abhishekacharya200 wants to merge 1 commit into
googleapis:mainfrom
abhishekacharya200:fix/feature-store-parent-project-location
Open

abhishekacharya200 wants to merge 1 commit into
googleapis:mainfrom
abhishekacharya200:fix/feature-store-parent-project-location

Conversation

@abhishekacharya200

Copy link
Copy Markdown

Fixes #7260

Feature, FeatureMonitor and FeatureView accept project and location, but when the parent was given as a short id they built the parent path with utils.full_resource_name without those two values. The request then went to the project and location from aiplatform.init.

This passes project and location to full_resource_name in all three classes. Callers who don't set them still get the aiplatform.init values, because that's what full_resource_name falls back to.

Added one test per class that sets different values in aiplatform.init and in the constructor, and checks the requested name. All three fail on main and pass with this change. test_vertexai_feature.py, test_vertexai_feature_monitor.py and test_vertexai_feature_view.py pass (58 passed), with the service clients mocked. black 24.8.0 and flake8 6.1.0 report nothing on the changed files.

Feature, FeatureMonitor and FeatureView built the parent path from
aiplatform.init, so a project or location passed with a short parent id
was ignored.
@abhishekacharya200
abhishekacharya200 requested a review from a team as a code owner October 31, 2026 14:47
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: vertex-ai Issues related to the googleapis/python-aiplatform API. labels Oct 31, 2026
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.

Feature, FeatureMonitor and FeatureView ignore project and location when the parent is a short id

1 participant