Skip to content

Conversation

@chanwonlee
Copy link
Contributor

관련 Issue (필수)

주요 변경 사항 (필수)

  • S3 저장 url 오류 수정
  • 상품 삭제 기능 추가

리뷰어 참고 사항

기존 prefix url이 같이 저장되는 문제를 해결합니다. 추가로 상품 삭제 기능도 추가하였습니다

추가 정보

없음

PR 작성 체크리스트 (필수)

  • 제목이 Issue와 동일함을 확인했습니다.
  • 리뷰어를 지정했습니다.
  • 프로젝트를 연결했습니다.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @chanwonlee, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 S3 이미지 URL 처리와 관련된 버그를 수정하고, 관리자 페이지에 상품 삭제 기능을 추가하여 관리 편의성을 높였습니다. S3 URL 버그 수정은 이미지 데이터의 저장 효율성을 개선하며, 상품 삭제 기능은 관리자가 불필요한 상품 데이터를 쉽게 관리할 수 있도록 합니다.

Highlights

  • S3 URL 처리 방식 개선: S3 이미지 업로드 시 URL 저장 방식이 변경되었습니다. 기존에는 전체 URL이 저장되었으나, 이제는 S3 키(파일 이름)만 저장되도록 수정되었습니다. toAbsoluteUrl 함수는 이제 렌더링 목적으로만 사용되며, uploadImage 함수는 S3 키를 반환합니다. 이로써 URL 중복 저장 문제를 해결합니다.
  • 상품 삭제 기능 추가: 관리자 페이지의 상품 상세 화면에 상품을 삭제할 수 있는 버튼이 추가되었습니다. 이 버튼을 클릭하면 확인 절차를 거쳐 해당 상품을 삭제하는 DELETE API 요청이 전송되며, 성공 시 관리자 목록 페이지로 이동합니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이 PR은 S3 URL을 전체 경로로 저장하던 문제를 객체 키만 저장하도록 수정하여 올바르게 해결했습니다. 또한 상품 삭제 기능이 CSRF 보호와 같은 보안 조치를 포함하여 잘 구현되었습니다. 추가된 JavaScript 코드의 가독성을 높이기 위한 제안 사항이 하나 있습니다. 전반적으로 좋은 변경입니다.

Copy link
Contributor

@Jimin730 Jimin730 left a comment

Choose a reason for hiding this comment

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

코드 모두 확인했습니다!
고생하셨습니다!! 👍 👍

@chanwonlee chanwonlee merged commit f935c13 into develop Sep 12, 2025
3 checks passed
@chanwonlee chanwonlee deleted the bug/164-fix-s3-url branch September 12, 2025 04:10
@github-project-automation github-project-automation bot moved this to Done in 💙 BE Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] S3 저장 url 오류 수정

4 participants