forward optional kwargs through image service create

This commit is contained in:
maryhipp 2024-01-16 12:06:36 -05:00
parent db58efbe65
commit ae3d7218c9
2 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,7 @@ class ImageServiceABC(ABC):
is_intermediate: Optional[bool] = False,
metadata: Optional[MetadataField] = None,
workflow: Optional[WorkflowField] = None,
**kwargs
) -> ImageDTO:
"""Creates an image, storing the file and its metadata."""
pass

View File

@ -43,6 +43,7 @@ class ImageService(ImageServiceABC):
is_intermediate: Optional[bool] = False,
metadata: Optional[MetadataField] = None,
workflow: Optional[WorkflowField] = None,
**kwargs
) -> ImageDTO:
if image_origin not in ResourceOrigin:
raise InvalidOriginException
@ -75,6 +76,7 @@ class ImageService(ImageServiceABC):
node_id=node_id,
metadata=metadata,
session_id=session_id,
**kwargs
)
if board_id is not None:
self.__invoker.services.board_image_records.add_image_to_board(board_id=board_id, image_name=image_name)