[#81] feat: 이슈 담당자 다중 지정 기능 구현#82
Merged
Merged
Conversation
기존 1:1 또는 N:1 관계였던 이슈와 담당자(Assignee)를 N:M 관계로 변경하여, 하나의 이슈에 여러 명의 담당자를 지정할 수 있도록 기능을 확장합니다. -DB 스키마 및 마이그레이션 (V4) : 수정 스크립트 추가 - JPA 엔티티 수정: IssueAssignee, IssueAssigneeId 생성 및 Issue 엔티티 수정 - 관련 DTO 수정 - IssueService 수정 - 관련 테스트 코드 수정
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.
연관된 이슈
작업 내용
주요 변경 사항
DB 스키마 및 마이그레이션 (V4)
issue 테이블의 assignee_id 컬럼을 삭제했습니다.
issue와 users를 연결하는 issue_assignee 조인 테이블을 새로 생성했습니다.
위 변경 사항을 적용하기 위한 Flyway 마이그레이션 스크립트(V4)를 추가했습니다.
JPA 엔티티 수정
issue_assignee 테이블에 매핑되는 IssueAssignee 및 IssueAssigneeId 엔티티를 생성했습니다.
Issue 엔티티의 private User assignee; 필드를 private Set issueAssignees;로 변경하여 다대다 관계를 반영하고, MultipleBagFetchException을 방지했습니다.
DTO 수정
IssueResponse, UpdateIssueRequest, CreateIssueRequest, IssueFilterRequest DTO에서 단일 담당자를 나타내던 assigneeId 필드를 List assigneeIds로 모두 변경했습니다.
서비스 로직(IssueService) 수정
이슈 생성(createIssue) 및 수정(updateIssue) 시, assigneeIds 목록을 받아 issue_assignee 테이블의 관계를 올바르게 처리하도록 로직을 수정했습니다.
이슈 목록 조회(getFilteredIssues) 시 여러 담당자 ID로 필터링할 수 있도록 QueryDSL 로직을 수정했습니다.
테스트 코드 수정
변경된 엔티티와 DTO 구조에 맞춰 관련 테스트 코드를 모두 수정했습니다.
📸 스크린샷 (선택)
PR 유형
리뷰 요구사항(선택)
PR Checklist
mainbranch가 아닌devbranch에 PR 요청을 했습니다. (main branch에 바로 PR&merge하지 않기).