Skip to content

Commit

Permalink
revert list deprecated actions endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed Jan 15, 2025
1 parent 856719f commit 660f0eb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
5 changes: 0 additions & 5 deletions tracecat/workflow/actions/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,3 @@ def validate_inputs(cls, v: dict[str, Any]) -> dict[str, Any]:
{"loc": ["inputs"]},
)
return v


class DeprecatedAction(BaseModel):
name: str
replacement: str
19 changes: 0 additions & 19 deletions tracecat/workflow/actions/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
ActionRead,
ActionReadMinimal,
ActionUpdate,
DeprecatedAction,
)

router = APIRouter(prefix="/actions")
Expand Down Expand Up @@ -185,21 +184,3 @@ async def delete_action(
# If the user doesn't own this workflow, they can't delete the action
await session.delete(action)
await session.commit()


@router.get("/deprecated", tags=["actions"])
async def list_deprecated_actions(
role: WorkspaceUserRole,
) -> list[DeprecatedAction]:
"""Get a list of deprecated actions and their replacements."""
deprecated_actions = [
DeprecatedAction(
name="integrations.virustotal.search_ip_address",
replacement="integrations.virustotal.lookup_ip_address",
),
DeprecatedAction(
name="integrations.virustotal.search_hash",
replacement="integrations.virustotal.lookup_hash",
),
]
return deprecated_actions

0 comments on commit 660f0eb

Please sign in to comment.