docs: Add published/skipped fields to companyx_news_posting.json structure

This commit is contained in:
happybell80 2025-09-08 17:29:34 +09:00
parent 8ec4fd1456
commit 75315b3671
3 changed files with 22 additions and 2 deletions

View File

@ -0,0 +1,10 @@
# CompanyX 뉴스 게시 플로우
## 시나리오
1. rb8001 → skill-news POST /api/news/google/companyx-search (09:10 크론)
2. skill-news가 status="summarized" 기사만 반환
3. rb8001이 Slack 채널에 뉴스 표시 (버튼 value에 article_id 포함)
4. 버튼 클릭 → Gateway → rb8001 /api/slack/interactive
5. rb8001 → skill-news GET /api/news/google/companyx/{article_id}
6. rb8001 → skill-publish POST /publish (전체 데이터 전송)
7. rb8001 → skill-news PATCH /api/news/google/companyx/{article_id} (status 업데이트)

View File

@ -53,7 +53,6 @@
### 수동 테스트
- Company-X 뉴스 즉시 실행: curl -X POST http://localhost:8001/api/test/companyx-news
- Daily Summary DM 테스트: curl -X POST http://localhost:8001/api/cron/daily-summary
- 로그 확인: docker logs rb8001
## 4. 환경 설정 요약
@ -75,3 +74,10 @@
- skill-email 500 에러 해결
- 운영 채널 전환 테스트
- 게시 완료 후 메시지 업데이트 기능
## 7. 2025-09-08 업데이트
- Gateway /slack/interactive 프록시 구현 완료
- skill-publish 422 에러: rb8001이 news_id, title, url만 전송 (content, summary 누락)
- 해결: skill-news에서 GET /api/news/google/companyx/{article_id}로 전체 데이터 조회
- companyx_news_posting.json에 status 필드 활용 (summarized/published/skipped)
- 구현 필요: skill-news GET/PATCH 엔드포인트, rb8001 article_id 전달

View File

@ -72,7 +72,11 @@ found_at: Optional[datetime] = Field(None, description="실제 수집 시각")
"summary_length": 285,
"company_name": "COMPANY X",
"summarized_at": "2025-09-08T...",
"status": "summarized"
"status": "summarized",
"published_at": null,
"published_by": null,
"skipped_at": null,
"skipped_by": null
}
}
}