Skip to content

docs: Add end-to-end registry deletion lifecycle example and unit test (#5360)#6504

Open
obielin wants to merge 1 commit into
feast-dev:masterfrom
obielin:docs/registry-deletion-lifecycle-5360
Open

docs: Add end-to-end registry deletion lifecycle example and unit test (#5360)#6504
obielin wants to merge 1 commit into
feast-dev:masterfrom
obielin:docs/registry-deletion-lifecycle-5360

Conversation

@obielin

@obielin obielin commented Jun 11, 2026

Copy link
Copy Markdown

What this PR does

Closes #5360.

The existing registry docs already cover the feast apply deletion warning, the CLI command, the individual Python SDK delete_* methods, and the partial=False note. The one remaining gap, as agreed in the issue discussion, is that there is no single, self-contained example showing the complete deletion lifecycle in one place.

This PR addresses that gap with a minimal, copy-pasteable addition.

Changes

  • docs/getting-started/components/registry.md: Adds an "End-to-end example" section demonstrating the full feature view deletion lifecycle — list/verify the object exists, delete it, then list again to confirm removal — and notes that the same pattern applies to other registry objects via their corresponding delete_* methods.
  • sdk/python/tests/unit/local_feast_tests/test_local_feature_store.py: Adds test_apply_delete_feature_view, which registers an entity and feature view, deletes it using apply(objects_to_delete=[...], partial=False), and asserts the feature view is gone and that get_feature_view raises FeatureViewNotFoundException.

Notes

This keeps the change intentionally small and documentation-focused, per the consensus reached in the issue thread between the maintainer and contributors. Thanks to @Henildiyora for the original snippet draft and review, and to @jyejare for the guidance.

@obielin obielin requested a review from a team as a code owner June 11, 2026 19:51
@obielin obielin force-pushed the docs/registry-deletion-lifecycle-5360 branch from b939040 to 5723ed6 Compare June 11, 2026 20:47
)

The existing registry deletion docs cover the CLI and individual Python
SDK delete methods, but lack a single copy-pasteable example showing the
full create -> verify -> delete -> confirm flow.

- Add an 'End-to-end example' snippet to registry.md that lists a feature
  view, deletes it with delete_feature_view(), and lists again to confirm.
- Add a unit test for FeatureView deletion via apply(objects_to_delete=...,
  partial=False) to guard the programmatic deletion path.

Signed-off-by: Linda Oraegbunam <obielinda@gmail.com>
@obielin obielin force-pushed the docs/registry-deletion-lifecycle-5360 branch from 5723ed6 to 25d077d Compare June 11, 2026 21:07
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.

Doc: Document feature store objects deletion from feast

1 participant