Skip to content

fix: Add project filter to apply_data_source and delete_data_source (closes #6206)#6322

Open
mailtoboggavarapu-coder wants to merge 4 commits intofeast-dev:masterfrom
mailtoboggavarapu-coder:patch-1
Open

fix: Add project filter to apply_data_source and delete_data_source (closes #6206)#6322
mailtoboggavarapu-coder wants to merge 4 commits intofeast-dev:masterfrom
mailtoboggavarapu-coder:patch-1

Conversation

@mailtoboggavarapu-coder
Copy link
Copy Markdown

@mailtoboggavarapu-coder mailtoboggavarapu-coder commented Apr 23, 2026

Summary

Fixes cross-project data source contamination in the file registry (issue #6206).

Root cause: apply_data_source only matched on name, not project, so applying a data source in project B could overwrite an existing source with the same name in project A.

Changes:

  • apply_data_source: deduplication now checks both name AND project
  • delete_data_source: deletion now filters by both name AND project

Tests added:

  • test_apply_data_source_cross_project_isolation: verifies project-scoped deduplication
  • test_delete_data_source_project_scoped: verifies project-scoped deletion

Closes #6206

Note: This supersedes PR #6319 (all commits have proper Signed-off-by DCO sign-off)


Open in Devin Review

…ixes feast-dev#6206)

Filters existing data sources by both name and project in the file
registry implementation, fixing cross-project contamination (issue feast-dev#6206).

Changes:
- apply_data_source: added project-scoped deduplication check
- delete_data_source: added project filter to avoid cross-project deletion

Signed-off-by: Venkateswarlu Boggavarapu <mailtoboggavarapu@gmail.com>
Regression tests for feast-dev#6206:
- test_apply_data_source_cross_project_isolation: verifies applying a data
  source to project_a does not overwrite the same-named source in project_b
- test_delete_data_source_project_scoped: verifies delete_data_source only
  removes the source from the specified project

Signed-off-by: Venkateswarlu Boggavarapu <mailtoboggavarapu@gmail.com>
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 3 additional findings.

Open in Devin Review

@mailtoboggavarapu-coder
Copy link
Copy Markdown
Author

Hi team! Checking in on this PR which fixes the missing project filter in apply_data_source and delete_data_source (closes #6206).

Quick status update:

  • DCO ✅
  • Devin Review ✅ (no issues found)
  • Lint fixed (removed extra blank line flagged by ruff formatter)
  • No conflicts with base branch

Happy to address any feedback or make changes. Thanks for your time!

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

1 participant