FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: scope data source operations by project in shared registry by mango766 · Pull Request #6207 · feast-dev/feast · GitHub

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

Closed
mango766 wants to merge 1 commit into
feast-dev:masterfrom
mango766:fix/data-source-project-scoping
Closed

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

Conversation

mango766 commented Apr 1, 2026
edited by devin-ai-integration Bot
Loading

Copy link
Copy Markdown

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

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 requested a review from a team as a code owner April 1, 2026 05:07

Copy link
Copy Markdown
Member

@mango766 please include tests

devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

✅ 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.

Copy link
Copy Markdown
Member

Fixed via #6322

ntkathole closed this May 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL