Skip to content

Commit

Permalink
features list is optional
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Howley <howley.robert@gmail.com>
  • Loading branch information
robhowley committed Oct 30, 2024
1 parent 94594ea commit 3025386
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sdk/python/feast/feature_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class MaterializeIncrementalRequest(BaseModel):
class GetOnlineFeaturesRequest(BaseModel):
entities: Dict[str, List[Any]]
feature_service: Optional[str] = None
features: List[str] = Field(default_factory=list)
features: Optional[List[str]] = Field(default_factory=list)
full_feature_names: bool = False


Expand Down Expand Up @@ -252,8 +252,8 @@ def materialize(request: MaterializeRequest):
for feature_view in request.feature_views or []:
# TODO: receives a str for resource but isn't in the Union. is str actually allowed?
assert_permissions(
resource=feature_view,
actions=[AuthzedAction.WRITE_ONLINE], # type: ignore
resource=feature_view, # type: ignore
actions=[AuthzedAction.WRITE_ONLINE],
)
store.materialize(
utils.make_tzaware(parser.parse(request.start_ts)),
Expand All @@ -266,8 +266,8 @@ def materialize_incremental(request: MaterializeIncrementalRequest):
for feature_view in request.feature_views or []:
# TODO: receives a str for resource but isn't in the Union. is str actually allowed?
assert_permissions(
resource=feature_view,
actions=[AuthzedAction.WRITE_ONLINE], # type: ignore
resource=feature_view, # type: ignore
actions=[AuthzedAction.WRITE_ONLINE],
)
store.materialize_incremental(
utils.make_tzaware(parser.parse(request.end_ts)), request.feature_views
Expand Down

0 comments on commit 3025386

Please sign in to comment.