Skip to content

fix: scope data source operations by project in shared registry#6207

Open
mango766 wants to merge 1 commit intofeast-dev:masterfrom
mango766:fix/data-source-project-scoping
Open

fix: scope data source operations by project in shared registry#6207
mango766 wants to merge 1 commit intofeast-dev:masterfrom
mango766:fix/data-source-project-scoping

Conversation

@mango766
Copy link
Copy Markdown

@mango766 mango766 commented Apr 1, 2026

Summary

Fixes #6206

apply_data_source and delete_data_source in Registry match data sources by name only, without filtering by project. When multiple projects share the same registry and have data sources with the same name (e.g. the default vals_to_add), this causes cross-project overwrites.

Fix

Add the project filter to both methods, consistent with how apply_entity (line 349-352), apply_feature_service (line 447-451), and apply_feature_view (line 779-781) already scope their lookups.

apply_data_source: existing_data_source_proto.name == data_source.name and existing_data_source_proto.project == project

delete_data_source: data_source_proto.name == name and data_source_proto.project == project

Test plan

  • feast apply for project A with data source vals_to_add does not overwrite project B's vals_to_add
  • feast apply for the same project still correctly updates existing data sources
  • Deleting a data source only removes the one in the specified project

Open with Devin

apply_data_source and delete_data_source match by name only, without
filtering by project. When multiple projects share the same registry
and have data sources with the same name, this causes cross-project
overwrites.

Add the project filter to both methods, consistent with how
apply_entity, apply_feature_service, and apply_feature_view already
scope their lookups by both name and project.

Fixes feast-dev#6206
@mango766 mango766 requested a review from a team as a code owner April 1, 2026 05:07
@ntkathole
Copy link
Copy Markdown
Member

@mango766 please include tests

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apply_data_source method matches by name only, without filtering by project in shared registry scenario

2 participants