diff --git a/troubleshooting/250908_skill_news_companyx_data_integration.md b/troubleshooting/250908_skill_news_companyx_data_integration.md index a4fe181..5d77ffc 100644 --- a/troubleshooting/250908_skill_news_companyx_data_integration.md +++ b/troubleshooting/250908_skill_news_companyx_data_integration.md @@ -85,9 +85,9 @@ found_at: Optional[datetime] = Field(None, description="실제 수집 시각") ## 최종 결과 - 하나의 `companyx_news_posting.json` 파일에 모든 데이터 통합 -- 수집 → 스크래핑 → 요약 단계별 업데이트 -- 캐시 효과로 재처리 방지 -- skill-publish가 필요한 모든 필드 제공 +- 수집 → 스크래핑 → 요약 → published/skipped 상태 관리 +- GET /api/news/google/companyx/{article_id} - rb8001이 필요시 조회 +- PATCH /api/news/google/companyx/{article_id} - status 업데이트 ## 교훈 1. **데이터 손실 방지**: 비싼 연산(스크래핑/AI 요약) 결과는 반드시 저장 diff --git a/troubleshooting/250908_slack_interactive_gateway_proxy.md b/troubleshooting/250908_slack_interactive_gateway_proxy.md index 4c3f914..9d808a8 100644 --- a/troubleshooting/250908_slack_interactive_gateway_proxy.md +++ b/troubleshooting/250908_slack_interactive_gateway_proxy.md @@ -32,8 +32,8 @@ ## 예상 동작 1. 버튼 클릭 → Slack → Gateway `/slack/interactive` 2. Gateway가 team_id로 DB 토큰 조회 -3. rb8001 `/api/slack/interactive`로 전달 -4. rb8001이 skill-publish 호출해서 홈페이지 게시 +3. rb8001이 skill-news에서 GET /api/news/google/companyx/{article_id} 조회 +4. 전체 데이터로 skill-publish 호출, 성공 시 PATCH로 status 업데이트 ## 관련 파일 - robeing-gateway/app/main.py:508 (slack_proxy 참고)