Skip to content

feature/148: 티켓 기능 리팩토링 및 프로젝트 구조 개선#149

Merged
yooooonshine merged 1 commit intodevelopfrom
feature/148-refactor-ticket
Aug 24, 2025
Merged

feature/148: 티켓 기능 리팩토링 및 프로젝트 구조 개선#149
yooooonshine merged 1 commit intodevelopfrom
feature/148-refactor-ticket

Conversation

@yooooonshine
Copy link
Contributor

@yooooonshine yooooonshine commented Aug 24, 2025

개요

이 PR은 티켓 기능 관련 리팩토링과 함께 프로젝트 전반적인 구조 개선을 포함하고 있습니다.

주요 변경사항

🎫 티켓 기능 개선

  • 트랜잭션 처리 개선: readOnly 트랜잭션으로 인한 오류 수정
  • PostId 통일: 프론트엔드 요청에 따라 idpostId로 변경하여 일관성 확보
  • 이미지 조회 로직 수정: createImageGetUrl 사용하도록 개선

🏗️ 프로젝트 구조 대규모 개선

  • Spring Boot 3.4.4 업그레이드: 최신 버전으로 업데이트
  • 빌드 시스템 개선: Gradle 설정 및 의존성 관리 최적화
  • CI/CD 파이프라인 개선: GitHub Actions 워크플로우 업데이트
  • Docker 지원: Docker 및 docker-compose 설정 추가

🔐 보안 및 인증 시스템 구축

  • JWT 기반 인증: 토큰 기반 인증 시스템 완전 구현
  • OAuth2 소셜 로그인: Google 등 소셜 로그인 지원
  • 리프레시 토큰: 토큰 갱신 메커니즘 구현
  • 이메일 인증: 회원가입 시 이메일 인증 코드 발송

💾 데이터베이스 및 캐싱

  • Redis 통합: 캐싱 및 세션 관리
  • RabbitMQ: AI 이미지 생성 메시지 큐 처리
  • JPA Auditing: 엔티티 생성/수정 시간 자동 관리

🎨 AI 이미지 생성 시스템

  • AI 이미지 생성: RabbitMQ를 통한 비동기 이미지 생성 요청 처리
  • AWS S3 통합: 이미지 저장 및 CloudFront를 통한 전송
  • 권한 관리: 이미지 생성 및 조회 권한 체크

👥 소셜 기능 확장

  • 팔로우 시스템: 사용자 간 팔로우/언팔로우 기능
  • 게시글 좋아요: 동시성 처리가 포함된 좋아요 시스템
  • 게시글 리뷰: 리뷰 및 댓글 시스템
  • 프로필 관리: 사용자 프로필 이미지 및 정보 관리

🔧 개발 도구 및 테스트

  • Swagger/OpenAPI: API 문서화 자동화
  • 테스트 개선: 통합 테스트 및 단위 테스트 확장
  • 코드 품질: 예외 처리 및 에러 코드 체계화

💰 코인 시스템

  • 코인 관리: 사용자 코인 충전, 전송, 소비 기능
  • 티켓 시스템: AI 이미지 생성을 위한 티켓 관리
  • 동시성 처리: 분산 락을 통한 코인 거래 안전성 보장

테스트 계획

  • 기존 기능 회귀 테스트
  • 새로운 API 엔드포인트 테스트
  • 인증 및 권한 테스트
  • 동시성 테스트

🤖 Generated with Claude Code

Co-Authored-By: Claude noreply@anthropic.com

Summary by CodeRabbit

  • 문서
    • 내 AI 티켓 조회 API(GET /api/ai/tickets/me) 설명을 보강했습니다. 하루가 경과한 경우 호출 시 티켓이 자동으로 새로고침됨을 명시했습니다.
    • 최신 티켓 상태를 받을 수 있는 시점을 더 명확히 안내하여 이용 편의성을 개선했습니다.
    • API의 사용 방법과 응답 형식에는 변경이 없습니다.

@yooooonshine yooooonshine linked an issue Aug 24, 2025 that may be closed by this pull request
@coderabbitai
Copy link

coderabbitai bot commented Aug 24, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

AI 요청 티켓 서비스에서 특정 조회 메서드의 read-only 트랜잭션 어노테이션이 제거되었고, 컨트롤러의 동일 엔드포인트 설명 문구가 “하루가 지나면 호출 시 티켓이 갱신된다”는 안내로 보강되었습니다. 메서드 시그니처나 로직 흐름의 변경은 없습니다.

Changes

Cohort / File(s) Change summary
Service 트랜잭션 설정 조정
src/main/java/hanium/modic/backend/domain/ai/service/AiRequestTicketService.java
getTicketInformation(Long userId)@Transactional(readOnly = true) 제거. 메서드 본문과 공개 시그니처 변경 없음.
API 문서 설명 보강
src/main/java/hanium/modic/backend/web/ai/controller/AiRequestTicketController.java
GET /api/ai/tickets/me@Operation 설명에 “하루가 지나면 호출 시 티켓 갱신” 문구 추가. 시그니처/흐름 변경 없음.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

귀 쫑긋 토끼, 코드 숲을 뛰며 봤지요 🐇
읽기 전용 벗은 티켓 길, 살짝 가벼워졌고—
문서엔 하루 지나면, 톡! 새 티켓이라네요.
딸깍 한 번, 신선함 리필!
당근 들고 배포축제, 깡충깡충 GO! 🥕✨

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.


📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between be6c5c0 and 4c47f46.

📒 Files selected for processing (2)
  • src/main/java/hanium/modic/backend/domain/ai/service/AiRequestTicketService.java (0 hunks)
  • src/main/java/hanium/modic/backend/web/ai/controller/AiRequestTicketController.java (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/148-refactor-ticket

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.
    • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

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

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@yooooonshine yooooonshine merged commit 5b78961 into develop Aug 24, 2025
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

티켓 트러블 슈팅

1 participant