Conversation
Contributor
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (5)
Walkthrough구독 시스템에 MCP 토큰 관리 기능을 추가합니다. 새로운 토큰 필드를 Subscription 모델에 추가하고, 토큰 발급 엔드포인트를 구현하며, 사용자 삭제를 soft delete로 변경합니다. Changes
Sequence Diagram(s)sequenceDiagram
actor Client
participant Server
participant DB
participant TokenService
Client->>Server: GET /me/mcp-token
Server->>DB: 사용자의 활성 구독 조회
alt 활성 구독이 없는 경우
Server->>DB: FREE_TRIAL 구독 생성
Server->>TokenService: 새 토큰 생성
TokenService-->>Server: 토큰 반환
Server->>DB: 토큰 저장
else 활성 구독이 있는 경우
alt 토큰이 존재하는 경우
Server->>Server: 기존 토큰 재사용
else 토큰이 없는 경우
Server->>TokenService: 새 토큰 생성
TokenService-->>Server: 토큰 반환
Server->>DB: 토큰 저장
end
else 구독이 만료된 경우
Server-->>Client: 403 Forbidden 응답
end
Server-->>Client: McpTokenResponse (토큰 포함)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
✨ Finishing Touches
🧪 Generate unit tests (beta)
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
📝작업 내용
스크린샷 (선택)
💬리뷰 요구사항(선택)
Summary by CodeRabbit
릴리스 노트
새로운 기능
버그 수정
개선 사항