Visitar URL original
feat(cli): Add `feast projects delete` command by mailtoboggavarapu-coder · Pull Request #6302 · feast-dev/feast · GitHub
Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: use store.registry property instead of store._registry in projec…
…t_delete

store._registry is always None until accessed via the lazy-init registry
property. Using store._registry directly caused project_delete to always
crash with an AssertionError.

Fixes: Devin Review finding in #6302
Signed-off-by: Venkateswarlu Boggavarapu <mailtoboggavarapu@gmail.com>
  • Loading branch information
mailtoboggavarapu-coder authored Apr 22, 2026
commit a8315f4ceccdc12e35d147909c010001e4285c95
3 changes: 1 addition & 2 deletions sdk/python/feast/cli/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,7 @@ def project_delete(ctx: click.Context, name: str, yes: bool):
)

try:
assert store._registry is not None
store._registry.delete_project(name, commit=True)
store.registry.delete_project(name, commit=True)
except (FeastObjectNotFoundException, ProjectNotFoundException) as e:
print(str(e))
raise SystemExit(1)
Expand Down