From a7932125a69332cd28e15cafcb00d89c0c21451e Mon Sep 17 00:00:00 2001 From: Daryl Lim Date: Sun, 3 Mar 2024 23:58:36 -0800 Subject: [PATCH] refactor(engine): Remove action_title from ActionRunResult --- tracecat/actions.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tracecat/actions.py b/tracecat/actions.py index ebaaaac34..d52af2e2e 100644 --- a/tracecat/actions.py +++ b/tracecat/actions.py @@ -130,7 +130,6 @@ class ActionRunResult(BaseModel): id: str = Field(default_factory=lambda: uuid4().hex) action_key: str = Field(pattern=ACTION_KEY_PATTERN, max_length=50) - action_title: str = Field(pattern=ALNUM_AND_WHITESPACE_PATTERN, max_length=50) data: dict[str, Any] = Field(default_factory=dict) should_continue: bool = True @@ -478,7 +477,7 @@ async def run_action( except Exception as e: custom_logger.error(f"Error running action {title} with key {key}.", exc_info=e) raise - return ActionRunResult(action_key=key, action_title=title, data=result) + return ActionRunResult(action_key=key, data=result) async def run_webhook_action(