Skip to content

fix: Delete sorted_feature_views rows when deleting a project - #376

Merged
piket merged 1 commit into
masterfrom
fix/delete-project-sorted-feature-views
Aug 12, 2026
Merged

piket merged 1 commit into
masterfrom
fix/delete-project-sorted-feature-views

Conversation

@piket

@piket piket commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

SqlRegistry.delete_project deletes rows from a fixed set of tables scoped by project_id, but was missing the sorted_feature_views table. SortedFeatureView is persisted separately from FeatureView, so any project with a SortedFeatureView left orphaned rows behind after delete_project, even though the in-memory cache (SqlFallbackRegistry) appeared clean.

Extends test_apply_project_success to apply a SortedFeatureView and assert it's removed after delete_project.

What this PR does / why we need it:

Which issue(s) this PR fixes:

Misc

SqlRegistry.delete_project deletes rows from a fixed set of tables
scoped by project_id, but was missing the sorted_feature_views table.
SortedFeatureView is persisted separately from FeatureView, so any
project with a SortedFeatureView left orphaned rows behind after
delete_project, even though the in-memory cache (SqlFallbackRegistry)
appeared clean.

Extends test_apply_project_success to apply a SortedFeatureView and
assert it's removed after delete_project.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>

@vanitabhagwat vanitabhagwat left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@piket
piket merged commit 1deadd6 into master Aug 12, 2026
29 checks passed
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.

2 participants