Visitar URL original
fix: Add project filter to apply_data_source and delete_data_source by mailtoboggavarapu-coder · Pull Request #6298 · 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
Next Next commit
style: apply ruff formatting fixes to registry.py
Signed-off-by: Venkateswarlu Boggavarapu <mailtoboggavarapu@gmail.com>
  • Loading branch information
mailtoboggavarapu-coder authored Apr 22, 2026
commit eb7175877975bbd2bc32b804d2c0c3a08613d90e
9 changes: 4 additions & 5 deletions sdk/python/feast/infra/registry/registry.py
Comment thread
devin-ai-integration[bot] marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ def apply_data_source(
return
else:
# Preserve created_timestamp from existing data source
data_source.created_timestamp = existing_data_source.created_timestamp
data_source.created_timestamp = (
existing_data_source.created_timestamp
)
del registry.data_sources[idx]
break

Expand All @@ -424,10 +426,7 @@ def delete_data_source(self, name: str, project: str, commit: bool = True):
for idx, data_source_proto in enumerate(
self.cached_registry_proto.data_sources
):
if (
data_source_proto.name == name
and data_source_proto.project == project
):
if data_source_proto.name == name and data_source_proto.project == project:
del self.cached_registry_proto.data_sources[idx]
if commit:
self.commit()
Expand Down