Skip to content

이미지 저장소 cloudflare로 고정#500

Merged
PororoAndFriends merged 1 commit intodevelop/befrom
feature/#424-cloudflare
Jun 6, 2025
Merged

이미지 저장소 cloudflare로 고정#500
PororoAndFriends merged 1 commit intodevelop/befrom
feature/#424-cloudflare

Conversation

@PororoAndFriends
Copy link
Collaborator

@PororoAndFriends PororoAndFriends commented Jun 6, 2025

#️⃣연관된 이슈

ex) #424

📝작업 내용

이미지 업로드 기능을 cloudflare로 설정합니다

Summary by CodeRabbit

  • Refactor
    • 클럽 이미지 관련 Cloudflare 전용 엔드포인트가 삭제되었습니다.
    • 기존 Google Drive 기반 클럽 이미지 엔드포인트가 Cloudflare 저장소를 사용하도록 변경되었습니다.
    • API 문서 설명이 Cloudflare 저장소 사용으로 명확하게 수정되었습니다.

@PororoAndFriends PororoAndFriends self-assigned this Jun 6, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 6, 2025

Walkthrough

Cloudflare 이미지 관리를 담당하던 CloudflareImageController가 삭제되었습니다. 기존에 Google Drive를 사용하던 ClubImageController가 Cloudflare 스토리지를 사용하도록 서비스 주입 및 Swagger 문서 설명이 변경되었습니다. 엔드포인트 시그니처나 로직에는 변화가 없습니다.

Changes

파일/경로 변경 요약
backend/src/main/java/moadong/media/controller/CloudflareImageController.java Cloudflare 이미지 관리 REST 컨트롤러 전체 삭제
backend/src/main/java/moadong/media/controller/ClubImageController.java 서비스 주입 대상을 Google Drive에서 Cloudflare로 변경, Swagger 설명을 Cloudflare로 명시

Sequence Diagram(s)

sequenceDiagram
    participant Client
    participant ClubImageController
    participant ClubImageService (Cloudflare)

    Client->>ClubImageController: 이미지 업로드/삭제/피드 업데이트 요청
    ClubImageController->>ClubImageService (Cloudflare): 요청에 따라 이미지 작업 수행
    ClubImageService (Cloudflare)-->>ClubImageController: 결과 반환
    ClubImageController-->>Client: 응답 반환
Loading
✨ Finishing Touches
  • 📝 Generate Docstrings

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • 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

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@PororoAndFriends PororoAndFriends added ✨ Feature 기능 개발 💾 BE Backend labels Jun 6, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (4)
backend/src/main/java/moadong/media/controller/ClubImageController.java (4)

36-37: Swagger 설명의 Cloudflare 표기 통일 제안
현재 설명에 소문자 cloudflare가 쓰였습니다. 고유명사 표기를 위해 Cloudflare로 변경을 권장합니다.

- @Operation(summary = "로고 이미지 업데이트", description = "cloudflare 상에 로고 이미지를 업데이트합니다.")
+ @Operation(summary = "로고 이미지 업데이트", description = "Cloudflare 상에 로고 이미지를 업데이트합니다.")

44-45: Swagger 설명의 Cloudflare 표기 통일 제안
삭제 API 설명에도 cloudflareCloudflare로 수정하는 것이 좋습니다.

- @Operation(summary = "로고 이미지 삭제", description = "cloudflare 상에 로고 이미지를 저장소에서 삭제합니다.")
+ @Operation(summary = "로고 이미지 삭제", description = "Cloudflare 상에 로고 이미지를 저장소에서 삭제합니다.")

51-52: Swagger 설명의 Cloudflare 표기 통일 제안
업로드 API 설명에서도 대소문자 표기를 일관되게 Cloudflare로 변경해 주세요.

- @Operation(summary = "피드 이미지 업로드", description = "cloudflare 상에 피드에 사용할 이미지를 업로드하고 주소를 반환받습니다.")
+ @Operation(summary = "피드 이미지 업로드", description = "Cloudflare 상에 피드에 사용할 이미지를 업로드하고 주소를 반환받습니다.")

57-58: Swagger 설명의 Cloudflare 표기 통일 제안
피드 설정 업데이트 설명에도 Cloudflare로 통일하면 문서 일관성이 높아집니다.

- @Operation(summary = "저장된 피드 이미지 업데이트(순서, 삭제 등..)", description = "cloudflare 상에 피드 이미지의 설정을 업데이트 합니다.")
+ @Operation(summary = "저장된 피드 이미지 업데이트(순서, 삭제 등..)", description = "Cloudflare 상에 피드 이미지의 설정을 업데이트합니다.")
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2e36e93 and 228f7a6.

📒 Files selected for processing (2)
  • backend/src/main/java/moadong/media/controller/CloudflareImageController.java (0 hunks)
  • backend/src/main/java/moadong/media/controller/ClubImageController.java (1 hunks)
💤 Files with no reviewable changes (1)
  • backend/src/main/java/moadong/media/controller/CloudflareImageController.java
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: test
🔇 Additional comments (1)
backend/src/main/java/moadong/media/controller/ClubImageController.java (1)

29-31:

Details

✅ Verification successful

Qualifier 변경 확인 필요
@Qualifier("cloudflare")로 지정된 Bean 이름이 실제로 존재하는지, 그리고 서비스 구현체에 동일한 이름으로 등록돼 있는지 검증해야 합니다.


🏁 Script executed:

#!/bin/bash
# Description: Qualifier로 지정된 Bean이 올바르게 등록돼 있는지 확인
rg -n '@Service.*\(.*"cloudflare".*\)|@Component.*\(.*"cloudflare".*\)' -g '*.java'

Length of output: 183


Qualifier "cloudflare" Bean 정상 등록 확인됨
backend/src/main/java/moadong/media/service/CloudflareImageService.java 27행에 @Service("cloudflare")가 정의되어 있어 @Qualifier("cloudflare")와 일치합니다. 추가 검증이나 수정이 필요 없습니다.

@github-actions
Copy link

github-actions bot commented Jun 6, 2025

Test Results

78 tests   78 ✅  2s ⏱️
12 suites   0 💤
12 files     0 ❌

Results for commit 228f7a6.

Copy link
Member

@Zepelown Zepelown left a comment

Choose a reason for hiding this comment

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

고생하셨습니다.

Copy link
Contributor

@lepitaaar lepitaaar left a comment

Choose a reason for hiding this comment

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

수고하셨어요

@PororoAndFriends PororoAndFriends merged commit a5c6a16 into develop/be Jun 6, 2025
3 checks passed
@PororoAndFriends PororoAndFriends deleted the feature/#424-cloudflare branch July 11, 2025 02:10
@coderabbitai coderabbitai bot mentioned this pull request Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💾 BE Backend ✨ Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments