Commit Graph

4 Commits

Author SHA1 Message Date
chiguyong c349e40fde fix: correct migration test required_tables, clean alembic.ini, add drift detection
- Replace incorrect required_tables list with actual 48 table names extracted
  from migration a79329c23b20_initial_complete_schema.py
- Remove tables that don't exist: citations, subscription_plans, agent_executions,
  analytics_events, client_brands
- Add missing tables: agent_registry, api_keys, optimization_insights, etc.
- Clean hardcoded database password from alembic.ini (env.py uses settings.DATABASE_URL)
- Add test_alembic_check_detects_drift with CI-only skipif
- Add DB-unavailable skip conditions to subprocess-based alembic tests
2026-06-04 22:17:02 +08:00
chiguyong 47719b25ce feat: deployment security hardening
- Redis: add password authentication (requirepass), update healthcheck
- PostgreSQL: replace hardcoded password with env variable
- Docker Compose: remove obsolete version field, use env vars for credentials
- Add .env.production.example template with strong password placeholders
- Update all .env files with new credentials and ports
2026-06-01 21:34:13 +08:00
chiguyong d5f752f419 fix: add DateTime(timezone=True) to analytics.py (4 columns), update migration and port config
- analytics.py: 4 DateTime columns now timezone-aware (99 total, 0 remaining)
- Migration script updated with publish_records, content_metrics, optimization_insights
- Docker Compose: db port 5433, redis port 6380 (avoid conflicts with fischerx)
- .env files: DATABASE_URL and REDIS_URL updated to new ports
- alembic.ini: updated to localhost:5433
2026-06-01 21:26:39 +08:00
chiguyong a8927a18e6 feat: GEO平台MVP完整实现
- 后端: FastAPI + SQLAlchemy 2.0 + PostgreSQL + Redis
  - 用户认证(注册/登录/JWT)
  - 查询词CRUD管理
  - 引用数据统计与查询
  - CSV报告导出
  - Citation Engine引用检测引擎(Playwright)
  - APScheduler定时调度器

- 前端: Next.js 14 + TailwindCSS + shadcn/ui + Recharts
  - 登录/注册页面(NextAuth.js)
  - Dashboard数据总览(统计卡片+趋势图+平台对比图)
  - 查询词管理(完整CRUD+立即查询)
  - 引用记录查看与筛选
  - 报告导出(CSV)
  - 设置页面(用户信息+套餐对比)

- 基础设施: Docker Compose(PostgreSQL/Redis/FastAPI/Next.js)
- 测试: 39个pytest单元/集成测试全部通过
2026-04-23 14:46:43 +08:00