feat: add sidecar service for Sessionize sync

- Introduced a new Node HTTP service (sidecar) to sync event agendas from Sessionize into Convivo.
- Implemented two import paths: API sync and Excel import for session and speaker data.
- Added necessary database migrations for sessionize integration, including new columns and audit tables.
- Created functions for handling speaker and session imports, ensuring proper error handling and logging.
- Established row-level security and grants for new functions to restrict access to service-role only.

Co-authored-by: Stephan Charles <[email protected]>
Co-authored-by: Amelia Hernandez <[email protected]>
Co-authored-by: Markus Franz <[email protected]>
Co-authored-by: Sabrina Hota <[email protected]>
Co-authored-by: Nilüfer Doğan <[email protected]>
This commit is contained in:
committed 2026-08-24 20:47:29 +02:00
1 parent a0bcf866dc
commit 5f8ded56f6
31 files changed
+2729 -390

No files matched your search

+25
View File
@@ -76,6 +76,31 @@ services:
retries: 5
start_period: 10s
convivo-sidecar:
build:
context: ./apps/sidecar
image: convivo-sidecar:latest
container_name: convivo-sidecar
ports:
- "3002:3002"
environment:
# Where the sidecar reaches PostgREST (Kong on the shared network).
SUPABASE_URL: ${SUPABASE_URL:-http://supabase_kong_Convivo:8000}
# First server-side holder of the service-role key (bypasses RLS).
# Standard local key by default; override for a real deployment.
SUPABASE_SERVICE_ROLE_KEY: ${SUPABASE_SERVICE_ROLE_KEY:-eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU}
# Sessionize API key (required to run a sync). Set to your key.
SESSIONIZE_API_KEY: ${SESSIONIZE_API_KEY:-}
networks:
- supabase
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-qO-", "http://127.0.0.1:3002/health"]
interval: 15s
timeout: 5s
retries: 5
start_period: 10s
networks:
supabase:
# External network created by `supabase start`. Name = supabase_network_<project_id>.