[FEAT] 공정 목록 검색/상세 기능 확장 (카테고리/그룹 표시, 검색 필터 추가)#36
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed. Walkthrough검색 엔드포인트에 카테고리 ID와 그룹 ID 필터링 기능을 추가했습니다. 컨트롤러부터 리포지토리까지 전체 계층을 통해 두 매개변수를 전파하고, DTO에 관련된 카테고리와 그룹 정보 필드를 추가하며, 쿼리에서 LEFT JOIN FETCH를 사용해 데이터를 효율적으로 로드합니다. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Controller as ProcessController
participant Service as ProcessService
participant Repository as ProcessRepository
participant DB
Client->>Controller: GET /search?q=...&categoryId=...&groupId=...
Controller->>Service: search(q, status, categoryId, groupId, page, size)
Service->>Repository: search(keyword, status, categoryId, groupId, pageable)
Repository->>DB: SELECT p FROM Process p<br/>LEFT JOIN FETCH p.partGroup pg<br/>LEFT JOIN FETCH pg.category<br/>WHERE ... categoryId ... groupId ...
DB-->>Repository: Process 목록 (관련 엔티티 포함)
Repository-->>Service: Page<Process>
Service->>Service: 각 Process를 ProcessResponseDTO로 변환<br/>(categoryId, categoryName,<br/>groupId, groupName 포함)
Service-->>Controller: PageResponseDto<ProcessResponseDTO>
Controller-->>Client: ApiResponse<PageResponseDto<ProcessResponseDTO>>
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
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. Comment |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Summary
🙏 Question & PR point
📬 Reference
Summary by CodeRabbit
릴리스 노트