Skip to content

Conversation

@ggamnunq
Copy link
Contributor

@ggamnunq ggamnunq commented Aug 9, 2025

검색 API

  • 명소, 축제 검색 API 구현
  • 카테고리 선택 가능
  • 카테고리 별 정렬 기준 분리

이용분포 조회 API

  • 명소 별 이용분포 조회 가능
  • 더미데이터 필요

홈화면 조회 API

  • 그냥 홈화면입니다.

Summary by CodeRabbit

  • 신규 기능

    • 홈 화면에서 혼잡도가 높은 장소와 추천 장소 정보를 조회할 수 있는 API가 추가되었습니다.
    • 검색 API가 추가되어 장소 및 축제 정보를 카테고리와 정렬 기준별로 조회할 수 있습니다.
    • 장소별 방문자 분포(성별·연령대) 정보를 백분율로 제공하는 기능이 추가되었습니다.
  • 개선 및 변경

    • 검색 및 홈 화면 관련 데이터 전송 객체(응답 DTO)가 신설되어 응답 구조가 명확해졌습니다.
    • 장소 정렬 기준 중 'LIKES'가 'LIKE'로 변경되었습니다.
    • 장소 엔티티에 방문자 분포 정보가 연동되었습니다.
    • 일부 API 파라미터 명칭 및 반환값이 개선되었습니다.
  • 버그 수정

    • 장소 API에서 longitude 파라미터 오타가 수정되었습니다.
  • 기타

    • Discord 알림 메시지에 모든 커밋 메시지와 커밋 수가 표시되도록 개선되었습니다.

@ggamnunq ggamnunq self-assigned this Aug 9, 2025
@coderabbitai
Copy link

coderabbitai bot commented Aug 9, 2025

Walkthrough

여러 신규 엔티티, DTO, 서비스, 컨트롤러, 레포지토리 및 enum이 도입되어 홈 및 검색 API 기능이 추가되었습니다. 장소의 방문자 분포 관련 도메인/쿼리 기능이 확장되었고, 기존 enum 및 레포지토리, 유틸리티 클래스에 일부 수정이 반영되었습니다. GitHub Actions 워크플로우 및 일부 컨트롤러, 서비스, 도메인 클래스에도 보완이 이루어졌습니다.

Changes

Cohort / File(s) Change Summary
홈/검색 API 신규 도입
src/main/kotlin/busanVibe/busan/domain/home/controller/HomeController.kt, src/main/kotlin/busanVibe/busan/domain/home/dto/HomeResponseDTO.kt, src/main/kotlin/busanVibe/busan/domain/home/service/HomeQueryService.kt, src/main/kotlin/busanVibe/busan/domain/search/controller/SearchController.kt, src/main/kotlin/busanVibe/busan/domain/search/dto/SearchResultDTO.kt, src/main/kotlin/busanVibe/busan/domain/search/service/SearchQueryService.kt
홈화면 및 검색 API를 위한 컨트롤러, DTO, 서비스 신규 추가. 홈화면 정보(혼잡도, 추천 장소) 및 통합 검색(장소/축제) 지원.
도메인/엔티티/레포지토리 확장
src/main/kotlin/busanVibe/busan/domain/place/domain/Place.kt, src/main/kotlin/busanVibe/busan/domain/place/domain/VisitorDistribution.kt, src/main/kotlin/busanVibe/busan/domain/place/repository/VisitorDistributionRepository.kt, src/main/kotlin/busanVibe/busan/domain/place/repository/PlaceRepository.kt, src/main/kotlin/busanVibe/busan/domain/festival/repository/FestivalRepository.kt
장소 엔티티에 방문자 분포 연관관계 및 관련 레포지토리/엔티티 추가. JPQL/EntityGraph를 활용한 fetch 메서드 다수 추가. 축제 레포지토리에도 fetch 메서드 신설.
장소 혼잡/분포 서비스 및 컨트롤러 개선
src/main/kotlin/busanVibe/busan/domain/place/service/PlaceCongestionQueryService.kt, src/main/kotlin/busanVibe/busan/domain/place/controller/PlaceCongestionController.kt
방문자 분포 조회 메서드 신설 및 컨트롤러에서의 반환 개선. Swagger 문서 설명 추가 및 파라미터명 오타 수정.
유틸리티 및 기타 보완
src/main/kotlin/busanVibe/busan/domain/place/util/PlaceRedisUtil.kt, src/main/kotlin/busanVibe/busan/domain/place/converter/PlaceDetailsConverter.kt, src/main/kotlin/busanVibe/busan/domain/place/service/PlaceQueryService.kt
Redis 유틸리티 패키지 이동 및 메서드 파라미터 개선. 관련 import 경로 및 enum 상수명(LIKES→LIKE) 변경.
공통/검색/홈 관련 enum 및 DTO 추가
src/main/kotlin/busanVibe/busan/domain/common/dto/InfoType.kt, src/main/kotlin/busanVibe/busan/domain/search/enums/GeneralSortType.kt, src/main/kotlin/busanVibe/busan/domain/place/enums/PlaceSortType.kt
InfoType, GeneralSortType 등 신규 enum 및 기존 enum 상수명 수정.
에러 상태 코드 추가
src/main/kotlin/busanVibe/busan/global/apiPayload/code/status/ErrorStatus.kt
검색 조건 오류용 에러 상태 상수 추가.
CI 워크플로우 개선
.github/workflows/discord.yml
Discord 알림에서 커밋 카운트, 전체 메시지, JSON 페이로드 안전 생성 등 개선.

Sequence Diagram(s)

홈화면 정보 조회 흐름

sequenceDiagram
    participant Client
    participant HomeController
    participant HomeQueryService
    participant PlaceRepository
    participant PlaceRedisUtil

    Client->>HomeController: GET /api/home
    HomeController->>HomeQueryService: getHomeInfo()
    HomeQueryService->>PlaceRepository: findAllWithImages()
    HomeQueryService->>PlaceRedisUtil: getCongestion(placeId)
    HomeQueryService-->>HomeController: HomeResultDto
    HomeController-->>Client: ApiResponse(HomeResultDto)
Loading

검색 결과 조회 흐름

sequenceDiagram
    participant Client
    participant SearchController
    participant SearchQueryService
    participant PlaceRepository
    participant FestivalRepository
    participant PlaceRedisUtil

    Client->>SearchController: GET /api/search?option&sort
    SearchController->>SearchQueryService: getSearchResult(option, sort)
    SearchQueryService->>PlaceRepository: findAllWithLikesAndOpenTimeByType() / findAllWithLikesAndOpenTime()
    SearchQueryService->>FestivalRepository: findAllWithFetch()
    SearchQueryService->>PlaceRedisUtil: getCongestion(placeId)
    SearchQueryService-->>SearchController: ListDto
    SearchController-->>Client: ApiResponse(ListDto)
Loading

장소 방문자 분포 조회 흐름

sequenceDiagram
    participant Client
    participant PlaceCongestionController
    participant PlaceCongestionQueryService
    participant PlaceRepository
    participant VisitorDistributionRepository

    Client->>PlaceCongestionController: GET /api/place/{id}/distribution
    PlaceCongestionController->>PlaceCongestionQueryService: getDistribution(placeId)
    PlaceCongestionQueryService->>PlaceRepository: findWithDistribution(placeId)
    alt 분포 없음
        PlaceCongestionQueryService->>VisitorDistributionRepository: save(new VisitorDistribution)
    end
    PlaceCongestionQueryService-->>PlaceCongestionController: PlaceUserDistributionDto
    PlaceCongestionController-->>Client: ApiResponse(PlaceUserDistributionDto)
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~40분

Poem

🐰
새로운 화면, 분포와 검색,
토끼는 깡충깡충 코드를 점검해!
홈과 축제, 장소와 분포,
모두 한눈에 들어오는 정보.
enum도 새로, 에러도 추가,
리뷰어의 귀엔 당근이 쏙쏙!

(깡총! 이번 PR은 풍성하군요 🥕)

Note

🔌 MCP (Model Context Protocol) integration is now available in Early Access!

Pro users can now connect to remote MCP servers under the Integrations page to get reviews and chat conversations that understand additional development context.


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between e6d865a and ac4e7b1.

📒 Files selected for processing (21)
  • .github/workflows/discord.yml (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/common/dto/InfoType.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/festival/repository/FestivalRepository.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/home/controller/HomeController.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/home/dto/HomeResponseDTO.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/home/service/HomeQueryService.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/place/controller/PlaceCongestionController.kt (2 hunks)
  • src/main/kotlin/busanVibe/busan/domain/place/converter/PlaceDetailsConverter.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/place/domain/Place.kt (3 hunks)
  • src/main/kotlin/busanVibe/busan/domain/place/domain/VisitorDistribution.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/place/enums/PlaceSortType.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/place/repository/PlaceRepository.kt (2 hunks)
  • src/main/kotlin/busanVibe/busan/domain/place/repository/VisitorDistributionRepository.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/place/service/PlaceCongestionQueryService.kt (3 hunks)
  • src/main/kotlin/busanVibe/busan/domain/place/service/PlaceQueryService.kt (2 hunks)
  • src/main/kotlin/busanVibe/busan/domain/place/util/PlaceRedisUtil.kt (2 hunks)
  • src/main/kotlin/busanVibe/busan/domain/search/controller/SearchController.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/search/dto/SearchResultDTO.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/search/enums/GeneralSortType.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/domain/search/service/SearchQueryService.kt (1 hunks)
  • src/main/kotlin/busanVibe/busan/global/apiPayload/code/status/ErrorStatus.kt (1 hunks)

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

🪧 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.
  • 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.

Support

Need help? Join our Discord community for assistance with any issues or questions.

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 sequence diagram to generate a sequence diagram of the changes in 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.

@ggamnunq ggamnunq merged commit 0625477 into main Aug 9, 2025
2 checks 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.

2 participants