You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
I Luk Kim 4a0aff9ad6 fix(overlay): 다중 버그 수정 및 OpenAPI 문서 개선
## Overlay 버그 수정

- **collect_all 동시성 오류**: asyncio.gather로 공유 DB 세션에 동시 접근 → SQLAlchemy 오류
  발생. 어댑터를 순차 실행으로 변경
- **feedparser/apscheduler/pytrends 미설치**: Docker 이미지 재빌드로 패키지 영구 포함
- **중복 job log 항목**: _log_job이 매번 새 행 삽입 → running+completed 중복 생성.
  기존 running 행을 업데이트하도록 수정
- **admin/health 잘못된 job_type**: yahoo_rss/wikimedia 등 존재하지 않는 타입 조회.
  실제 로깅되는 collect_all/feature_build만 조회하도록 수정
- **source_presence 항상 false**: z-score가 계산 불가능하면(2일 미만 데이터) source가
  false로 표시됨. 실제 데이터 존재 여부(headline_count_24h > 0 등)로 판단하도록 수정
- **top-movers 심볼 중복**: 파이프라인 실행 횟수만큼 같은 심볼 반복 출력.
  심볼별 최신 레코드만 조회하는 서브쿼리로 수정
- **YouTube None 곱셈 오류**: view_count * channel_weight에서 None이면 TypeError.
  (or 0) / (or 0.5) 가드 추가

## Trends 기능 수정

- **ThemeTopicMap 자동 시딩**: 파이프라인 최초 실행 시 TOP_50_SYMBOLS에 대한
  기본 topic 매핑 자동 생성
- **GOOGLE_TRENDS_ENABLED=true**: docker-compose.yml에 환경변수 추가
- **theme_heat_z 항상 null**: feature_builder에 build_trends_features() 메서드
  누락 → OverlayTrendObservation 데이터가 점수에 반영 안 됨. 메서드 추가 및 연결
- **POST /admin/seed-topics**: ThemeTopicMap 수동 시딩용 admin 엔드포인트 추가

## OpenAPI 문서 개선

- 모든 엔드포인트에 summary/description 추가 (filings, news, database, etf, stocks,
  screener, fred, attention, overlay)
- Pydantic 스키마에 json_schema_extra example 추가 (attention, filing)
- 누락된 태그 6개 추가 (attention, attention-admin, database, fred, error-logs,
  request-logs)
- 루트(/) 랜딩 페이지를 Swagger UI로 리다이렉트로 교체

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 months ago
..
attention feat(attention): Attention 서브시스템 추가 — 이벤트 중심 Wikipedia/GDELT 관심도 피처 5 months ago
overlay fix(overlay): 다중 버그 수정 및 OpenAPI 문서 개선 5 months ago
__init__.py Initial commit with full project improvements 5 months ago
alpaca_client.py Add Alpaca-specific DB table and Redis caching for Alpaca/FINRA endpoints 5 months ago
alpaca_price_service.py Add Alpaca-specific DB table and Redis caching for Alpaca/FINRA endpoints 5 months ago
etf_holdings_fetcher.py Add SEC filings indexing, search, and exhibit extraction (8-K, 6-K, 20-F, 40-F) 5 months ago
etf_loader_service.py Initial commit with full project improvements 5 months ago
financial_service.py perf: Phase 1-3 Stock Oracle API 성능 개선 5 months ago
finra_short_volume_service.py Add Alpaca-specific DB table and Redis caching for Alpaca/FINRA endpoints 5 months ago
fred_proxy_service.py Codebase improvements: caching decorator, Pydantic v2, DB indexes, connection pooling, Alembic 5 months ago
fred_service.py Initial commit with full project improvements 5 months ago
index_constituents_service.py fix(stocks): Wikipedia 403 우회를 위해 User-Agent 헤더 추가 5 months ago
news_social_service.py Initial commit with full project improvements 5 months ago
price_data_service.py perf: Phase 1-3 Stock Oracle API 성능 개선 5 months ago
real_sec_financial_service.py Initial commit with full project improvements 5 months ago
screener_service.py feat(screener): add stock screener API with yfinance EquityQuery 5 months ago
sec_data_service.py Initial commit with full project improvements 5 months ago
sec_edgar_service.py Add SEC filings indexing, search, and exhibit extraction (8-K, 6-K, 20-F, 40-F) 5 months ago
sec_filings_service.py fix(sec): exhibit timeout 15초 → 25초 (2단계 fetch 고려) 5 months ago
sec_http_client.py fix(sec): resp.get_encoding() 버그 수정 — 504 직접 원인 5 months ago
yahoo_52week_gainers_service.py Initial commit with full project improvements 5 months ago
yahoo_most_active_service.py Initial commit with full project improvements 5 months ago