-
Notifications
You must be signed in to change notification settings - Fork 0
[Refactor] Dev 환경 이미지 S3 방향 전환 #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (3)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Note
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR refactors the dev environment to use S3 storage instead of local file storage, aligning it with the production environment's approach.
Key Changes:
- Enabled S3StorageManager for both prod and dev profiles
- Deprecated LocalStorageManager with documentation explaining the change
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| S3StorageManager.java | Updated @Profile annotation to include dev environment alongside prod |
| LocalStorageManager.java | Marked as deprecated with explanatory comments, removed profile restriction |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/main/java/com/daedan/festabook/storage/infrastructure/S3StorageManager.java
Show resolved
Hide resolved
| /* | ||
| 날짜 : 2025/11/27 | ||
| Dev 환경 로컬 저장 방식에서 S3 방식으로 변경되어 사용하지 않게 되었습니다. | ||
| 하지만, 추후 로컬에서 사용할 수 있는 가능성이 있어 남겨둡니다. |
Copilot
AI
Nov 27, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The deprecation comment uses the wrong comment style. For a multi-line comment explaining deprecation in Java, use Javadoc style (/** ... */) instead of block comment style (/* ... */).
This allows better documentation generation and IDE integration. Consider:
/**
* @deprecated 날짜 : 2025/11/27
* Dev 환경 로컬 저장 방식에서 S3 방식으로 변경되어 사용하지 않게 되었습니다.
* 하지만, 추후 로컬에서 사용할 수 있는 가능성이 있어 남겨둡니다.
*/| /* | |
| 날짜 : 2025/11/27 | |
| Dev 환경 로컬 저장 방식에서 S3 방식으로 변경되어 사용하지 않게 되었습니다. | |
| 하지만, 추후 로컬에서 사용할 수 있는 가능성이 있어 남겨둡니다. | |
| /** | |
| * @deprecated 날짜 : 2025/11/27 | |
| * Dev 환경 로컬 저장 방식에서 S3 방식으로 변경되어 사용하지 않게 되었습니다. | |
| * 하지만, 추후 로컬에서 사용할 수 있는 가능성이 있어 남겨둡니다. |
src/main/java/com/daedan/festabook/storage/infrastructure/LocalStorageManager.java
Outdated
Show resolved
Hide resolved
src/main/java/com/daedan/festabook/storage/infrastructure/LocalStorageManager.java
Show resolved
Hide resolved
changuii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코멘트 확인해주세요!
| @Slf4j | ||
| @Loggable | ||
| @Component | ||
| @Profile("dev") | ||
| @Deprecated(since = "2025/11/27") | ||
| /** | ||
| * @Deprecated 날짜 : 2025/11/27 | ||
| * Dev 환경 로컬 저장 방식에서 S3 방식으로 변경되어 사용하지 않게 되었습니다. | ||
| * 하지만, 추후 로컬에서 사용할 수 있는 가능성이 있어 남겨둡니다. | ||
| */ | ||
| public class LocalStorageManager implements StorageManager { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 @Componenet 어노테이션을 제거해야 LocalStorageManager가 정상적으로 dev, prod 환경에서 주입이 되지 않을 것 같아요
현재 코드를 보면 모든 프로파일에서 빈으로 등록되고 있습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Componenet 어노테이션 제거 했습니다. 꼼꼼한 리뷰 감사합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
코멘트 확인해주세요~
| @Profile("dev") | ||
| @Deprecated(since = "2025/11/27") | ||
| /** | ||
| * @Deprecated 날짜 : 2025/11/27 | ||
| * Dev 환경 로컬 저장 방식에서 S3 방식으로 변경되어 사용하지 않게 되었습니다. | ||
| * 하지만, 추후 로컬에서 사용할 수 있는 가능성이 있어 남겨둡니다. | ||
| */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Deprecated 어노테이션을 적용해도 스프링이 LocalStorageManager 컴포넌트를 빈으로 등록할 것 같습니다.
@Profile 어노테이션이 삭제되면 모든 프로필 상황에서 빈이 로드되니 S3StorageManager와 충돌이 날 것 같습니다.
아예 파일을 삭제하는 건 어떤가요?
맥에서 실행하는 local 환경에서는 MockStorageManager가 빈 등록되어 큰 문제는 없어보입니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
삭제하는 방향으로 할까요? 언제 로컬에 저장할 지 몰라서 임시로 제거해둔 건데, 팀원들 의견 들어보고 결정합시다!
|
해당 파일에 dev를 추가했습니다. dev ci-cd 하면서 이 부분도 같이 @Profile 설정을 해야한다는 점을 알게되어 적용했습니다. |
changuii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
#️⃣ 이슈 번호
🛠️ 작업 내용