Skip to content

Commit

Permalink
BasicRestRouterService get_entity now propagates kwargs to ingress se…
Browse files Browse the repository at this point in the history
…rvice, get_entity endpoint now supports refresh query parameter
  • Loading branch information
douwevandermeij committed Nov 13, 2024
1 parent 4903b67 commit 2b5c196
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fractal/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Fractal is a scaffolding toolkit for building SOLID logic for your Python applications."""

__version__ = "5.2.2"
__version__ = "5.3.0"

from abc import ABC

Expand Down
3 changes: 3 additions & 0 deletions fractal/contrib/fastapi/routers/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def get_entity(
entity_id=str(entity_id),
account_id=str(kwargs.get("account")),
specification=specification,
**kwargs,
)

def add_entity(
Expand Down Expand Up @@ -291,11 +292,13 @@ def get_entity(
method="get",
)
),
refresh: bool = False,
):
return router_service_class().get_entity(
entity_id=entity_id,
specification=payload.specification,
**payload.asdict(),
refresh=refresh,
)

@router.put(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "fractal-toolkit"
version = "5.2.2"
version = "5.3.0"
description = "Fractal is a scaffolding toolkit for building SOLID logic for your Python applications."
authors = ["Douwe van der Meij <douwe@karibu-online.nl>"]

Expand Down

0 comments on commit 2b5c196

Please sign in to comment.