Skip to content

Conversation

@taek2222
Copy link
Contributor

#️⃣ 이슈 번호

#6


🛠️ 작업 내용

  • Dev 환경 이미지 저장을 기존 로컬 방식에서 S3로 변경했습니다.
  • Secret YML 은 변경 완료해놨습니다.

@coderabbitai
Copy link

coderabbitai bot commented Nov 27, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (3)
  • android
  • backend
  • frontend

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit 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

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'tools'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch refactor/6

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

Copilot AI left a 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.

Comment on lines 21 to 24
/*
날짜 : 2025/11/27
Dev 환경 로컬 저장 방식에서 S3 방식으로 변경되어 사용하지 않게 되었습니다.
하지만, 추후 로컬에서 사용할 수 있는 가능성이 있어 남겨둡니다.
Copy link

Copilot AI Nov 27, 2025

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 방식으로 변경되어 사용하지 않게 되었습니다.
 * 하지만, 추후 로컬에서 사용할 수 있는 가능성이 있어 남겨둡니다.
 */
Suggested change
/*
날짜 : 2025/11/27
Dev 환경 로컬 저장 방식에서 S3 방식으로 변경되어 사용하지 않게 되었습니다.
하지만, 추후 로컬에서 사용할 있는 가능성이 있어 남겨둡니다.
/**
* @deprecated 날짜 : 2025/11/27
* Dev 환경 로컬 저장 방식에서 S3 방식으로 변경되어 사용하지 않게 되었습니다.
* 하지만, 추후 로컬에서 사용할 있는 가능성이 있어 남겨둡니다.

Copilot uses AI. Check for mistakes.
Copy link
Member

@changuii changuii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코멘트 확인해주세요!

Comment on lines 17 to 26
@Slf4j
@Loggable
@Component
@Profile("dev")
@Deprecated(since = "2025/11/27")
/**
* @Deprecated 날짜 : 2025/11/27
* Dev 환경 로컬 저장 방식에서 S3 방식으로 변경되어 사용하지 않게 되었습니다.
* 하지만, 추후 로컬에서 사용할 수 있는 가능성이 있어 남겨둡니다.
*/
public class LocalStorageManager implements StorageManager {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 @Componenet 어노테이션을 제거해야 LocalStorageManager가 정상적으로 dev, prod 환경에서 주입이 되지 않을 것 같아요
현재 코드를 보면 모든 프로파일에서 빈으로 등록되고 있습니다!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Componenet 어노테이션 제거 했습니다. 꼼꼼한 리뷰 감사합니다!

Copy link
Contributor

@eoehd1ek eoehd1ek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

코멘트 확인해주세요~

Comment on lines -21 to +25
@Profile("dev")
@Deprecated(since = "2025/11/27")
/**
* @Deprecated 날짜 : 2025/11/27
* Dev 환경 로컬 저장 방식에서 S3 방식으로 변경되어 사용하지 않게 되었습니다.
* 하지만, 추후 로컬에서 사용할 수 있는 가능성이 있어 남겨둡니다.
*/
Copy link
Contributor

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가 빈 등록되어 큰 문제는 없어보입니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

삭제하는 방향으로 할까요? 언제 로컬에 저장할 지 몰라서 임시로 제거해둔 건데, 팀원들 의견 들어보고 결정합시다!

@taek2222
Copy link
Contributor Author

taek2222 commented Dec 2, 2025

refactor: 프로필 dev 추가

해당 파일에 dev를 추가했습니다. dev ci-cd 하면서 이 부분도 같이 @Profile 설정을 해야한다는 점을 알게되어 적용했습니다.

@taek2222 taek2222 requested review from changuii and eoehd1ek December 2, 2025 11:32
Copy link
Member

@changuii changuii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@taek2222 taek2222 merged commit 70858f9 into dev Dec 3, 2025
5 checks passed
@taek2222 taek2222 deleted the refactor/6 branch December 3, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants