fix: 4 API bugs found by integration tests
Check Cross-Plugin Imports / check (push) Has been cancelled

1. tags.owner_id column missing — Migration 0105 adds owner_id to tags table
2. contacts trigger first_name vs firstname — Migration 0105 recreates
   unified_search TSV trigger with correct column names (firstname, surname, etc.)
3. create_webhook() missing is_system_admin param — Add to webhook_service.py
4. Missing GET /api/v1/search endpoint — Add to unified_search/routes.py
   with shared _do_search() helper for GET+POST

Alembic head: 0104 → 0105
This commit is contained in:
Agent Zero
2026-08-04 22:57:37 +02:00
parent b115d8211e
commit f15c3bec46
3 changed files with 182 additions and 4 deletions
+1
View File
@@ -113,6 +113,7 @@ async def create_webhook(
tenant_id: uuid.UUID,
user_id: uuid.UUID,
data: dict[str, Any],
is_system_admin: bool = False,
) -> Webhook:
"""Create a new webhook subscription."""
webhook = Webhook(