Commit Graph
10 Commits
Author SHA1 Message Date
Lago afb360c3ad Use direct PostgreSQL host
CI / lint-and-test (push) Has been cancelled
2026-07-12 21:25:39 +02:00
Lago 8151c530da feat: Phase 3 — web dashboard, testing, and CI/CD
CI / lint-and-test (push) Has been cancelled
- Remove multi-marketplace from Phase 3
- Add FastAPI web UI on port 8766 with basic auth
- Add 6 Jinja2 templates (dashboard, keywords, users, ads, stats)
- Add pytest test suite (45 tests, 49% coverage)
- Add GitHub Actions CI/CD workflow
- Update docker-compose.yml to expose web UI port
- Update Dockerfile to include tests
2026-07-10 22:28:18 +02:00
hermes f540cbe7ef feat(phase-0): stability hardening — search path fix, auto-migrations, graceful shutdown, health endpoint
- Remove SET search_path from db.py and migration SQL (Supabase uses public schema)
- Add migrate.py with tracking table for forward-only SQL migrations
- Add entrypoint.sh: waits for DB, runs migrations, then starts app
- Copy 01-schema.sql + zz-seed.sql to worker/src/migrations/
- Add health.py: /health endpoint (200/503) with DB connectivity + scheduler staleness checks
  - /stats endpoint with keyword/ad/notification counts
- Rewrite main.py shutdown sequence: signal handler, 5s grace for scheduler, ordered cleanup
- Update Dockerfile: HEALTHCHECK directive, entrypoint, COPY migrations
- Update docker-compose.yml: stop_grace_period=15s, healthcheck config, env vars
- Add aiohttp>=3.9 to requirements.txt for health server
2026-07-04 11:30:45 -04:00
Lago 753174b946 switch to direct DB connection on supabase_default network, bypass supavisor 2026-07-04 11:21:01 +02:00
Lago 98c71d4232 Migrate from local Supabase stack to external Supabase instance
- Reduce docker-compose from 6 services to 1 (worker only)
- Connect via supavisor pooled port (6543) on dedicated Supabase
- Add willhaben_tracker schema with search_path in asyncpg pool init
- Create consolidated migration SQL for Supabase SQL Editor
- Update .env.example with new connection pattern
2026-07-04 10:33:27 +02:00
Lago 46c1b01e98 refactor: consolidate 3 migrations into single 01-schema.sql, remove legacy files 2026-06-17 13:42:14 +02:00
Lago 0b19c3d8f2 fix: mount all migrations in compose, fix post-boot grants for new schema 2026-06-16 22:07:49 +02:00
Lago 3136d55742 fix: Postgres auth + worker startup 2026-06-16 19:38:32 +02:00
Lago 1a5d998cc8 chore: local dev paths, drop ADMIN_TELEGRAM_IDS from compose 2026-06-16 19:27:35 +02:00
Lago 7c9db4d705 feat: docker-compose + .env.example + postgresql.conf + updated README 2026-06-16 19:16:08 +02:00