From 75315b3671eab7d1c7284b3d2f30604b49515bd7 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Mon, 8 Sep 2025 17:29:34 +0900 Subject: [PATCH] docs: Add published/skipped fields to companyx_news_posting.json structure --- 300_architecture/sequences/companyx_news_flow.md | 10 ++++++++++ plan/250907_company_x_news_implementation.md | 8 +++++++- .../250908_skill_news_companyx_data_integration.md | 6 +++++- 3 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 300_architecture/sequences/companyx_news_flow.md diff --git a/300_architecture/sequences/companyx_news_flow.md b/300_architecture/sequences/companyx_news_flow.md new file mode 100644 index 0000000..f516005 --- /dev/null +++ b/300_architecture/sequences/companyx_news_flow.md @@ -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 업데이트) \ No newline at end of file diff --git a/plan/250907_company_x_news_implementation.md b/plan/250907_company_x_news_implementation.md index 405e375..f72f667 100644 --- a/plan/250907_company_x_news_implementation.md +++ b/plan/250907_company_x_news_implementation.md @@ -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 전달 diff --git a/troubleshooting/250908_skill_news_companyx_data_integration.md b/troubleshooting/250908_skill_news_companyx_data_integration.md index 5d77ffc..2e3f89e 100644 --- a/troubleshooting/250908_skill_news_companyx_data_integration.md +++ b/troubleshooting/250908_skill_news_companyx_data_integration.md @@ -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 } } }