Merged
Conversation
Closed
ht3064
reviewed
Nov 1, 2025
| import java.util.List; | ||
|
|
||
| public record AlbumImagesConfirmResponse( | ||
| @Schema(description = "로컬 사진 삭제 허용 여부") Boolean localImageDeletion, |
Collaborator
There was a problem hiding this comment.
이미 검증을 마치고 업로드하는 부분이니 다음 응답 필드는 빼도 될 것 같아요.
로컬 사진 삭제 허용 여부는 클라이언트에서 검증 API 호출 전에 확인하는게 맞아보입니다!
Collaborator
Author
There was a problem hiding this comment.
별도로 확인하는 API를 만들자는 말씀인가요?
Collaborator
There was a problem hiding this comment.
회원 정보 조회로 로컬 사진 삭제 허용 여부를 확인할 수 있어서 해당 API 응답에는 불필요해 보인다고 말씀드린겁니다!
업로드 완료 처리 후보다는 완료 전에 허용 여부를 확인하는 게 더 자연스러울 것 같아서요
ht3064
reviewed
Nov 1, 2025
cherrypic-api/src/main/java/org/cherrypic/domain/image/service/ImageServiceImpl.java
Show resolved
Hide resolved
|
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.



🌱 관련 이슈
📌 작업 내용 및 특이사항
다음과 같은 API들이 수정되고 생성되었습니다.
<수정 사항>
앨범 이미지 업로드 PresignedUrl 발급 API & 임시 앨범 이미지 업로드 PresignedUrl 발급 API
S3에 status=pending인 사진들은 하루에 한번씩 청소되도록 규칙을 추가했습니다.
(이런 방법을 통해 pending 상태의 사진이 사용자들에게 노출될 일도 없고 별도의 Cleaner를 만들지 않도록 했습니다)
<추가 사항>
앨범 이미지 업로드 검증 API & 임시 앨범 이미지 업로드 검증 API
complete로 바꿔줍니다.따라서, 검증을 완료하지 않은 이미지들은 엔티티로 생성될 수 없는 구조입니다.
검증 단계에서는 발급 단계에서 진행했던 validation을 중복으로 수행하지는 않습니다.