Skip to content

feat: Task 제목 수정 Mutation 추가 (#21)#22

Merged
robinjoon merged 2 commits intomainfrom
ticket/#21
Mar 6, 2026
Merged

feat: Task 제목 수정 Mutation 추가 (#21)#22
robinjoon merged 2 commits intomainfrom
ticket/#21

Conversation

@robinjoon
Copy link
Member

Summary

  • Task 제목을 수정할 수 있는 updateTaskTitle GraphQL Mutation 추가
  • 본인 소유 할일만 수정 가능 (소유권 검증)
  • updateStatus와 동일한 패턴으로 전 레이어(Domain → Application → Infrastructure → Presentation) 구현

변경 사항

  • Domain: TaskCommand.UpdateTitle, TaskRepository.updateTitle() 추가
  • Application: TaskService.updateTitle() — 소유권 검증 + 제목 수정
  • Infrastructure: ExposedTaskRepository.updateTitle() 구현
  • Presentation: updateTaskTitle mutation + UpdateTaskTitleInput input 스키마 추가
  • Test: TaskServiceTest에 3개 테스트 케이스 추가 (성공, 미존재, 권한 없음)

Test plan

  • TaskServiceTest — 본인 할일 제목 수정 성공
  • TaskServiceTest — 존재하지 않는 할일 → EntityNotFoundException
  • TaskServiceTest — 타인 할일 → AccessDeniedException
  • 전체 테스트 통과 (./gradlew test)

Closes #21

🤖 Generated with Claude Code

본인 소유 할일의 제목을 수정할 수 있는 updateTaskTitle mutation 추가.
소유권 검증 포함, updateStatus와 동일한 패턴 적용.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
PR 리뷰 반영: 개별 mutation을 하나의 updateTask로 통합.
UpdateTaskInput(id, title?, status?)으로 변경할 필드만 전달.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@robinjoon robinjoon merged commit bff9dce into main Mar 6, 2026
1 check 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.

Task 제목 수정 Mutation 추가

1 participant