Skip to content

Conversation

@sungchaewon
Copy link
Member

@sungchaewon sungchaewon commented Jun 19, 2025

이슈 번호

작업 내용

기타

Summary by CodeRabbit

  • 신규 기능

    • 게시글 검색 기능이 추가되어 키워드, 태그, 페이징을 통한 검색이 가능합니다.
    • Swagger(OpenAPI) 기반의 API 문서가 제공되며, JWT 인증이 연동됩니다.
    • 게시글 및 태그 관련 목업 데이터 자동 초기화 기능이 도입되었습니다.
  • 버그 수정

    • Swagger 경로 및 인증 관련 보안 설정이 개선되었습니다.
  • 문서화

    • API 문서에 인증 필요 엔드포인트에 대한 명시가 추가되었습니다.
  • 환경설정/빌드

    • Spring Boot, Swagger, QueryDSL 등 주요 라이브러리 및 빌드 구성이 업데이트되었습니다.
    • 개발/운영 환경 설정이 분리되고, AWS 및 JWT 관련 설정이 명확히 정리되었습니다.
  • 기타

    • 일부 서비스 및 컨트롤러에 디버깅용 로그가 추가되었습니다.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 19, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

이 변경사항은 QueryDSL 및 Swagger(OpenAPI) 기반 검색 기능을 도입하고, 관련 DTO, 서비스, 레포지토리, 설정 클래스를 추가합니다. 또한, 환경설정과 빌드 스크립트가 정비되었으며, Swagger 보안 요구사항이 여러 컨트롤러에 적용되었습니다. 일부 서비스와 컨트롤러에 디버깅용 로그가 추가되었습니다.

Changes

파일/그룹 변경 요약
.gitignore, build.gradle, application.properties 환경설정 및 빌드 스크립트 정비, QueryDSL/Swagger 의존성 추가, Spring Boot 버전 변경, 환경별 프로퍼티 구분, AWS/JWT 설정 추가
src/main/java/com/example/FixLog/config/QuerydslConfig.java,
SwaggerConfig.java
QueryDSL 및 Swagger(OpenAPI) 설정 클래스 추가
src/main/java/com/example/FixLog/controller/FollowController.java,
MemberController.java,
MypageMemberController.java
Swagger 보안 요구(@SecurityRequirement(name = "bearerAuth")) 어노테이션 추가, 일부 메서드에 디버깅용 로그 추가
src/main/java/com/example/FixLog/controller/SearchController.java 검색 API 컨트롤러 클래스 신규 추가
src/main/java/com/example/FixLog/dto/search/SearchPostDto.java,
SearchRequestDto.java
검색 결과/요청 DTO 클래스 신규 추가
src/main/java/com/example/FixLog/mock/PostMockDataInitializer.java,
TagMockDataInitializer.java
태그 및 게시글 목데이터 초기화 컴포넌트 추가
src/main/java/com/example/FixLog/repository/post/PostRepository.java,
PostRepositoryCustom.java,
PostRepositoryImpl.java
PostRepository에 커스텀 검색 인터페이스/구현 추가, QueryDSL 기반 검색 쿼리 구현
src/main/java/com/example/FixLog/service/SearchService.java,
impl/SearchServiceImpl.java
검색 서비스 인터페이스 및 구현 클래스 신규 추가
src/main/java/com/example/FixLog/service/AuthService.java,
MemberService.java
주요 메서드에 디버깅용 로그 추가
src/main/java/com/example/FixLog/controller/MypagePostController.java merge conflict 해결, likedPosts 메서드 일관성 유지

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant SearchController
    participant SearchServiceImpl
    participant PostRepository

    Client->>SearchController: GET /main/search (keyword, tags, page, size)
    SearchController->>SearchServiceImpl: searchPosts(keyword, tags, pageable)
    SearchServiceImpl->>PostRepository: searchByKeywordAndTags(keyword, tags, pageable)
    PostRepository-->>SearchServiceImpl: Page<SearchPostDto>
    SearchServiceImpl-->>SearchController: Page<SearchPostDto>
    SearchController-->>Client: Response<PageResponseDto<SearchPostDto>>
Loading

Possibly related PRs

  • FixLog/FixLog_Server#66: QueryDSL 설정, PostRepository 커스텀 인터페이스 및 구현, QuerydslConfig 등 본 PR과 직접적으로 동일한 코드 레벨 변경을 포함합니다.

Suggested labels

chaewon

Suggested reviewers

  • semsemin
  • youngseo22

Poem

🐇
새로운 검색이 깡총깡총,
토끼 귀처럼 쏙 올라온 QueryDSL!
Swagger 문서도 반짝반짝,
태그와 게시글이 춤을 추네.
로그로 남긴 발자국 따라,
FixLog는 더 똑똑해졌지!
🥕


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 346d29c and 1a6cc45.

⛔ Files ignored due to path filters (10)
  • src/main/generated/com/example/FixLog/domain/bookmark/QBookmark.java is excluded by !**/generated/**
  • src/main/generated/com/example/FixLog/domain/bookmark/QBookmarkFolder.java is excluded by !**/generated/**
  • src/main/generated/com/example/FixLog/domain/follow/QFollow.java is excluded by !**/generated/**
  • src/main/generated/com/example/FixLog/domain/fork/QFork.java is excluded by !**/generated/**
  • src/main/generated/com/example/FixLog/domain/like/QPostLike.java is excluded by !**/generated/**
  • src/main/generated/com/example/FixLog/domain/member/QMember.java is excluded by !**/generated/**
  • src/main/generated/com/example/FixLog/domain/post/QPost.java is excluded by !**/generated/**
  • src/main/generated/com/example/FixLog/domain/post/QPostTag.java is excluded by !**/generated/**
  • src/main/generated/com/example/FixLog/domain/tag/QTag.java is excluded by !**/generated/**
  • src/main/generated/com/example/FixLog/tset/QTestMember.java is excluded by !**/generated/**
📒 Files selected for processing (22)
  • .gitignore (1 hunks)
  • build.gradle (3 hunks)
  • src/main/java/com/example/FixLog/config/QuerydslConfig.java (1 hunks)
  • src/main/java/com/example/FixLog/config/SecurityConfig.java (2 hunks)
  • src/main/java/com/example/FixLog/config/SwaggerConfig.java (1 hunks)
  • src/main/java/com/example/FixLog/controller/FollowController.java (4 hunks)
  • src/main/java/com/example/FixLog/controller/MemberController.java (3 hunks)
  • src/main/java/com/example/FixLog/controller/MypageMemberController.java (6 hunks)
  • src/main/java/com/example/FixLog/controller/MypagePostController.java (2 hunks)
  • src/main/java/com/example/FixLog/controller/SearchController.java (1 hunks)
  • src/main/java/com/example/FixLog/dto/search/SearchPostDto.java (1 hunks)
  • src/main/java/com/example/FixLog/dto/search/SearchRequestDto.java (1 hunks)
  • src/main/java/com/example/FixLog/mock/PostMockDataInitializer.java (1 hunks)
  • src/main/java/com/example/FixLog/mock/TagMockDataInitializer.java (1 hunks)
  • src/main/java/com/example/FixLog/repository/post/PostRepository.java (1 hunks)
  • src/main/java/com/example/FixLog/repository/post/PostRepositoryCustom.java (1 hunks)
  • src/main/java/com/example/FixLog/repository/post/PostRepositoryImpl.java (1 hunks)
  • src/main/java/com/example/FixLog/service/AuthService.java (2 hunks)
  • src/main/java/com/example/FixLog/service/MemberService.java (4 hunks)
  • src/main/java/com/example/FixLog/service/SearchService.java (1 hunks)
  • src/main/java/com/example/FixLog/service/impl/SearchServiceImpl.java (1 hunks)
  • src/main/resources/application.properties (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

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

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.

@sungchaewon sungchaewon merged commit d8e3574 into main Jun 19, 2025
0 of 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