Skip to content

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

Open

Description

@abhishekacharya200

Feature, FeatureMonitor and FeatureView in vertexai.resources.preview accept project and location, documented as the place to read the resource from. When the parent is given as a short id (feature_group_id or feature_online_store_id), the parent path is built with utils.full_resource_name without those two values, so it comes from aiplatform.init instead.

aiplatform.init(project="global-project", location="us-central1")
Feature("my_feature", feature_group_id="my_group", project="other-project", location="europe-west4")
# requests projects/global-project/locations/us-central1/featureGroups/my_group/features/my_feature

Expected: projects/other-project/locations/europe-west4/featureGroups/my_group/features/my_feature.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: vertex-aiIssues related to the googleapis/python-aiplatform API.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions