Skip to content

Conversation

@kamillcream
Copy link
Contributor

@kamillcream kamillcream commented Aug 1, 2025

📌 PR 개요

생성된 코스 결과에 포함된 관광지의 시간대별 혼잡도 정보 포함

✅ 변경사항

  • 생성된 코스 결과에 포함된 관광지의 시간대별 혼잡도 정보 포함

🔍 체크리스트

  • PR 제목은 명확한가요?
  • 관련 이슈가 있다면 연결했나요?
  • 로컬 테스트는 통과했나요?
  • 코드에 불필요한 부분은 없나요?

📎 관련 이슈

Closes #37


💬 기타 참고사항

Summary by CodeRabbit

  • 신규 기능

    • 코스 추천 결과에 각 코스 구성 요소의 혼잡도 정보가 포함되어 표시됩니다.
  • 버그 수정

    • 데이터베이스 및 API 키 설정이 환경 변수로 대체되어 보안성이 향상되었습니다.
  • 배포/CI

    • 자동 빌드 및 배포를 위한 CI/CD 파이프라인이 추가되었습니다.
    • Dockerfile이 도입되어 컨테이너 기반 배포가 가능해졌습니다.
  • 기타

    • 일부 엔티티 필드명이 변경되었습니다.

@kamillcream kamillcream linked an issue Aug 1, 2025 that may be closed by this pull request
2 tasks
@coderabbitai
Copy link

coderabbitai bot commented Aug 1, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

코스 결과에 시간대별 혼잡도 정보를 추가하는 기능이 도입되었습니다. 이를 위해 DTO, 서비스, 엔티티가 수정되었으며, 환경 변수 기반 설정 및 배포 자동화(Dockerfile, GitHub Actions workflow) 파일이 추가되었습니다. 데이터베이스 및 API 키 설정도 환경 변수로 변경되었습니다.

Changes

Cohort / File(s) Change Summary
CI/CD 및 배포 자동화
.github/workflows/release.yml, Dockerfile
GitHub Actions 기반 CI/CD 워크플로우와 Dockerfile이 새로 추가되어, 빌드·테스트·배포 자동화 및 컨테이너 이미지화가 구현됨.
코스 결과 혼잡도 추가
src/main/java/com/opendata/domain/course/dto/response/CourseComponentResponse.java, src/main/java/com/opendata/domain/course/service/CourseService.java
코스 결과 DTO에 혼잡도(congestionLevel) 필드가 추가되고, 서비스에서 시간대별 혼잡도 정보를 조회하여 DTO에 포함하도록 로직이 수정됨.
엔티티 필드명 정정
src/main/java/com/opendata/domain/tourspot/entity/TourSpotFutureCongestion.java
엔티티의 기본키 필드명이 futureCongestionId에서 realTimeCongestionId로 변경됨.
환경 변수 기반 설정
src/main/resources/application.yml
DB 연결 정보 및 API 키가 하드코딩에서 환경 변수 참조로 변경됨.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant CourseService
    participant FutureCongestionRepository
    participant CourseComponentResponse

    User->>CourseService: recommendCourses()
    loop 각 CourseComponent
        CourseService->>FutureCongestionRepository: findByTourSpotIdAndFcstTime()
        FutureCongestionRepository-->>CourseService: TourSpotFutureCongestion(혼잡도)
        CourseService->>CourseComponentResponse: from(component, congestionLevel)
    end
    CourseService-->>User: List<CourseComponentResponse>
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~15 minutes

Assessment against linked issues

Objective Addressed Explanation
코스 결과에 시간대별 혼잡도 추가 (mapper, Dto 수정) (#37)
mapper의 파라미터인 Dto 수정 (#37)

Assessment against linked issues: Out-of-scope changes

Code Change Explanation
CI/CD 자동화 및 Dockerfile 추가 (.github/workflows/release.yml, Dockerfile) 혼잡도 관련 기능 구현과 직접적으로 관련되지 않은 배포 자동화 및 컨테이너화 작업입니다.
환경 변수 기반 설정 변경 (src/main/resources/application.yml) 혼잡도 기능과 무관하게, 설정 파일의 환경 변수화가 추가적으로 이루어졌습니다.

Suggested labels

enhancement

Poem

🐰
새로운 혼잡도 정보와 함께
코스 추천이 더욱 똑똑해졌지!
자동화 바람 타고 둥실둥실
도커에 실려 배포도 척척
바쁜 토끼도 한숨 돌리네—
변화의 바람, 오늘도 힘차게!

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7a4b8c1 and 4254943.

📒 Files selected for processing (6)
  • .github/workflows/release.yml (1 hunks)
  • Dockerfile (1 hunks)
  • src/main/java/com/opendata/domain/course/dto/response/CourseComponentResponse.java (1 hunks)
  • src/main/java/com/opendata/domain/course/service/CourseService.java (3 hunks)
  • src/main/java/com/opendata/domain/tourspot/entity/TourSpotFutureCongestion.java (1 hunks)
  • src/main/resources/application.yml (2 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/#37-course-time-congestion

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@kamillcream kamillcream merged commit cf68d25 into main Aug 1, 2025
1 of 2 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Aug 19, 2025
4 tasks
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.

[feat] 코스 결과에 시간대별 혼잡도 추가

2 participants