Skip to content

[DEPLOY] ver 1.2.4#15

Merged
goblurry merged 2 commits into
deployfrom
main
Nov 16, 2025
Merged

[DEPLOY] ver 1.2.4#15
goblurry merged 2 commits into
deployfrom
main

Conversation

@goblurry

@goblurry goblurry commented Nov 16, 2025

Copy link
Copy Markdown
Member

🎯 목적

칼럼에 원문 기사에 관한 정보를 추가함. (제목, 출판일, 발행사)

📝 주요 변경사항

  1. DB 스키마: source_title, source_publisher, source_published_at 컬럼 추가
  2. API 응답: 칼럼 조회 시 원문 정보 포함
  • source_title: 원본 기사 제목
  • source_publisher: 원본 기사 발행사
  • source_published_at: 원본 기사 발행 시각

🔗 관련 이슈/PR

  • Related to #
  • Includes changes from #

🔄 버전 검토

  • 배포 버전 변경 시 config.py 업데이트 필요

🧪 테스트

  • 로컬 테스트 완료(Swagger UI에서 API 동작 확인)

📋 체크리스트

  • API 스펙 변경사항 문서화 (Swagger 업데이트)
  • 프론트엔드에 필요한 환경 변수 안내
  • 데이터베이스 스키마 변경사항 공유 (schema.sql 업데이트)
  • API 응답 형식 변경 여부 확인
  • CodeRabbit 제안사항 검토 완료

📝 커밋 메시지 규칙
타입 설명
feat 새로운 기능 추가 (API, 서비스 로직 등)
fix 버그 수정 (예외 처리, 로직 오류 등)
refactor 리팩토링 (기능 변화 없이 구조 개선)
style 코드 스타일 수정 (공백, 들여쓰기 등)
docs 문서 수정 (README, Swagger, 주석 등)
test 테스트 코드 추가/수정
chore 설정/빌드 관련 변경 (requirements.txt, .gitignore 등)
perf 성능 개선 (쿼리 최적화 등)
ci CI/CD 관련 설정 변경 (GitHub Actions 등)
config 설정 파일 변경 (config.py 등)

예시: feat: 뉴스 칼럼 추천 API 추가

Summary by CodeRabbit

릴리스 노트

  • 새 기능

    • 뉴스 항목에 출처 정보 추가: 출처 제목, 발행사, 발행일시가 이제 저장 및 조회됩니다.
  • 개선사항

    • 컬럼 생성 로그 모니터링 도구 추가로 시스템 운영 효율성 향상.
  • Chores

    • 애플리케이션 버전을 1.2.4로 업데이트.

[FEAT] 칼럼 응답에 원문 기사 정보 추가 (제목, 출판일, 발행사)
@coderabbitai

coderabbitai Bot commented Nov 16, 2025

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

📝 Walkthrough

개요

애플리케이션 버전을 1.2.4로 업데이트하고, 뉴스 기사의 출처 메타데이터(제목, 출판사, 발행일)를 저장하기 위해 데이터베이스 스키마와 저장소 계층을 확장합니다. Docker 로그 확인 유틸리티도 추가됩니다.

변경 사항

응집도 / 파일(들) 변경 요약
버전 업데이트
app/config.py
Settings의 기본 app_version을 "1.2.3"에서 "1.2.4"로 변경
데이터베이스 스키마 확장
database/schema.sql
news_columns 테이블에 source_title (TEXT), source_publisher (VARCHAR(255)), source_published_at (TIMESTAMP) 컬럼 추가. 기존 테이블을 대상으로 한 조건부 마이그레이션 블록 포함
저장소 계층 업데이트
app/services/news/news_db_repository.py
datetime 임포트 추가. save_column, get_column, get_all_columns 메서드에서 새로운 출처 필드(source_title, source_publisher, source_published_at) 처리 추가. ISO 문자열 파싱 로직 포함
로그 모니터링 유틸리티
check_column_generation_logs.sh
Docker 컨테이너 로그에서 열 생성 이벤트를 수집하고 필터링하는 신규 셸 스크립트. 4가지 모니터링 방법 제공

예상 코드 리뷰 소요 시간

🎯 3 (중간 수준) | ⏱️ ~25분

  • app/services/news/news_db_repository.py: 여러 메서드에서 새로운 필드 처리 로직 검증 필요. 타임스탐프 파싱 및 기본값 처리 로직 확인
  • database/schema.sql: 마이그레이션 블록의 멱등성 및 information_schema 조건 검증 필요
  • 데이터베이스-저장소 간 필드 매핑: INSERT/UPDATE 쿼리와 행 매핑 로직이 스키마 변경사항과 일치하는지 확인
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch main

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f866f50 and 956c3c2.

📒 Files selected for processing (4)
  • app/config.py (1 hunks)
  • app/services/news/news_db_repository.py (10 hunks)
  • check_column_generation_logs.sh (1 hunks)
  • database/schema.sql (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@goblurry
goblurry merged commit f7aa6f1 into deploy Nov 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant