Repository navigation
feat: 위험도 분석 접수 후 조회 방식(#30)과 회원 탈퇴 시 기록·파일 삭제(#43) - #60
Merged
Merged
Conversation
Closes #54 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
POST /api/v1/risk-assessments는 PROCESSING으로 즉시 접수(202)하고, 분석은 커밋 이후 백그라운드에서 수행한다.
GET /api/v1/risk-assessments/{id}가 status(PROCESSING/COMPLETED/FAILED)와 failureReason
(NO_FACE_DETECTED/AI_SERVER_ERROR/TIMEOUT)을 돌려준다. 딥페이크 탐지와 같은 방식이다.
- 얼굴 미검출·AI 오류는 예외가 아니라 FAILED와 사유로 표현한다.
- 분석이 끝나기 전·실패한 건은 결과 컬럼이 비므로 V10 마이그레이션에서 NULL을 허용하고, 기존 행은 COMPLETED로 채운다.
- 내 분석 목록은 완료된 건만, 비회원 이용 횟수는 실패한 건을 빼고 센다.
- 5분 넘게 PROCESSING에 머문 건(재시작 등)은 조회할 때 TIMEOUT 실패로 정리한다.
- 분석이 끝나지 않은 진단은 보호 처리를 시작할 수 없다(409).
- LLM 호출 시간 초과를 ANALYSIS_TIMEOUT으로 구분한다.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JfUPGxfx9b1wA61pUbijb6
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JfUPGxfx9b1wA61pUbijb6
탈퇴해도 사용자 얼굴 사진과 분석 기록이 남던 문제를 고친다. - UserDataEraser: 위험도 분석, 딥페이크 탐지, 보호 처리, 모니터링(탐지 결과 포함), 신고서/증거, 기관 연결 첨부, 채팅 기록을 지우고 연결된 파일은 커밋 뒤에 지운다. 파일 하나를 못 지워도 나머지는 계속 지운다. - 프로필 이미지를 바꾸면 이전 파일도 지운다. - 신고서 삭제 시 문서 파일과 이 신고서에만 쓴 증거도 함께 지운다. - LocalFileStorage.delete는 빈 주소를 무시한다. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JfUPGxfx9b1wA61pUbijb6
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JfUPGxfx9b1wA61pUbijb6
Collaborator
|
리뷰했습니다. 전반적으로 @async를 커밋 뒤에 띄우는 점, EAGER ElementCollection, 파일 삭제를 커밋 뒤로 미루는 점, 웹 검색 기록까지 탈퇴 때 지우는 점 모두 확인했고 문제 없었습니다. 반영한 것 (이 브랜치에 푸시):
확인이 필요한 것:
|
This was referenced Nov 8, 2026
진행 중인 건은 동시에 여러 장을 올려 제한을 피하지 못하게 계속 횟수에 넣는다. 다만 서버가 재시작돼 결과가 나오지 못한 건은 조회되기 전까지 FAILED가 되지 못해 횟수를 계속 차지하므로, 접수한 지 5분이 지난 PROCESSING 건은 뺀다. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JfUPGxfx9b1wA61pUbijb6
Collaborator
Author
확인 감사합니다. 130c609 반영 확인했고 이어서 작업했습니다. 익명 횟수에 PROCESSING을 세는 건 의도한 것입니다(동시 업로드로 제한을 피하지 못하게). #59가 머지되면서 생긴 LlmRiskAnalyzerTest 충돌도 main 병합으로 해결했습니다. |
5 of 6 tasks
jyx-07
approved these changes
Nov 8, 2026
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.
변경 내용
#30 위험도 분석 비동기화
(기존 행은 COMPLETED로 채움)
#43 회원 탈퇴 시 데이터·파일 삭제
신고서/증거, 기관 연결 첨부, 채팅 기록을 DB와 업로드 파일 모두 삭제
확인 사항
남은 것 / 팀 결정 필요
프론트 영향
Closes #30, Closes #43