Repository navigation
feat(12-delete-withdraw): 지우기 · 탈퇴 — 코스 · 로드맵 지우기 · 탈퇴 · 화면 - #44
Merged
Merged
Conversation
… · 잠금 순서 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…번 탈퇴 · 하네스 기록 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
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.



요약
SCHEDULE §3 #12 지우기 · 탈퇴예요. 사용자가 코스 · 로드맵을 지우고, 승인된 사람이 내 정보 탭에서 탈퇴해요. 지우는 범위와 순서는 02 §7 · §8.6 을 따라요.
DELETE /api/courses/{id}→204. 단일 코스는 상태와 상관없이 지워요. 로드맵의 코스는COURSE_DELETE_NOT_ALLOWED(409 · 「로드맵의 코스는 로드맵을 지워야 해요」)예요(ADR-027). 카드는 지우지 않고COURSE_DELETED로 바꿔요(ADR-165). 복습 기록 · 개념은 그대로 남고, 호출 기록 · 크레딧 기록은job_id만 비워요.DELETE /api/roadmaps/{id}→204. 검토 중 · 진행 중 · 다 마침 모두 지워요(ADR-190). 짜기 전 코스까지 코스 규칙대로 지운 뒤 로드맵을 지워요.POST /api/account/withdraw→204이고, 승인된 사람만 써요(ADR-059).account는 다른 학습 도메인의 Java 타입을 참조하지 않고 네이티브 SQL 로 지워요. 새 ArchUnit 규칙이 이를 지켜요.무엇이 바뀌었나
course-deleteCourseDeletionService·JpaCourseDeletionRepository·CardCommandService.hideLessonCards·COURSE_DELETE_NOT_ALLOWEDroadmap-deleteRoadmapDeletionService·lockRoadmapJobs· 공통deleteContentAfterJobsaccount-withdrawWithdrawController·WithdrawService·JpaAccountWithdrawalRepository· ArchUnitACCOUNT_DOES_NOT_DEPEND_ON_LEARNING_DOMAINSdelete-screensCoursePage·RoadmapPage·useCourseDeletion·useRoadmapDeletionwithdraw-screenProfilePage탈퇴test-namesCourseControllerDeletionIntegrationTest·WithdrawControllerIntegrationTest로 옮김 · 07 §1query-keysqueryKeys.ts로 모아useCourse·useRoadmap의 서로 참조를 없앰ON DELETE SET NULL넷)와 세션 테이블이 이미 있어요.넘어가는 경합(ADR-102 · 02 §8.6 ③)
받기 쪽(다시 시도 · 버리기 · 새 작업 받기)이 같은 대상의 지우기 · 탈퇴와 같은 순간에 오면 한쪽이
500으로 끝날 수 있어요. 원인은 두 가지예요.두 경우 모두 트랜잭션이 되돌려질 뿐 데이터는 상하지 않아요. 같은 순간에 두 번 탈퇴하면 뒤쪽 요청은
404예요.병합 전에 사람이 할 일
없어요. 다만 아래는 참고해 주세요.
🤖 Generated with Claude Code