pudding-keep-in-touch / keep-in-touch-be-v2

푸딩캠프 토이스토리 3팀 KEEP IN TOUCH Backend 2차 개발
0 stars 0 forks source link

✨ [Feature] v1 to v2 API 이관 #17

Closed jis-kim closed 1 week ago

jis-kim commented 1 week ago

Summary

Issue number and link

Summary by CodeRabbit

릴리스 노트

coderabbitai[bot] commented 1 week ago

Walkthrough

이 변경 사항은 여러 파일에서 엔티티 및 서비스 구조를 업데이트하고, Google 로그인 기능을 개선하며, 사용자 닉네임을 가져오는 API를 구현하는 내용을 포함합니다. 주요 변경 사항으로는 JWT 관련 환경 변수 삭제, 새로운 사용자 및 메시지 엔티티 추가, 기존 엔티티 삭제, 그리고 여러 모듈 및 서비스의 의존성 주입 개선이 있습니다. 또한, 커밋 메시지 유효성 검사를 위한 규칙 변경과 테스트 파일 추가 및 삭제가 포함되어 있습니다.

Changes

파일 경로 변경 요약
.env.sample JWT_SECRETJWT_EXPIRES_IN 변수 삭제
commitlint.config.js 커밋 메시지의 이슈 참조를 선택적으로 변경하는 정규 표현식 수정
lefthook.yml pre-committest 명령 추가 및 parallel: true 추가
package.json Jest 설정에서 @v1/(.*)@router/(.*) 모듈 이름 매핑 삭제
src/app.module.ts RouterModule 제거, AuthModuleUsersModule 추가
src/common/types/google-user.type.ts GoogleUser 타입 정의 추가
src/entities/direct-messages.entity.ts DirectMessages 엔티티 삭제
src/entities/emotion-details.entity.ts EmotionDetails 엔티티 삭제
src/entities/emotion.entity.ts Emotion 엔티티 추가
src/entities/message-statistic.entity.ts MessageStatistic 엔티티 추가
src/entities/reaction-template.entity.ts ReactionTemplateType 열거형 및 ReactionTemplate 엔티티 추가
src/entities/user.entity.ts User 엔티티 추가
src/modules/auth/auth.controller.ts ConfigService 주입 및 Google 로그인 처리 방식 수정
src/modules/auth/auth.module.ts UsersModule 경로 업데이트 및 LoggerModule 추가
src/modules/auth/auth.service.ts Google 로그인 로직 변경
src/modules/auth/strategies/google.strategy.ts GoogleProfile 타입 추가 및 검증 메서드 수정
src/modules/users/dto/get-user-nickname.dto.ts ResponseGetUserNicknameDto DTO 추가
src/modules/users/users.controller.ts UsersController 추가 및 사용자 닉네임 가져오기 API 구현
src/modules/users/users.module.ts UsersModule 추가
src/modules/users/users.repository.ts UsersRepository 추가
src/modules/users/users.service.ts UsersService 추가 및 사용자 관련 메서드 구현
src/configs/process-env.config.ts REDIRECT_URL 환경 변수 추가
src/entities/message.entity.ts Message 엔티티 및 MessageStatus 열거형 추가
tsconfig.json noUnusedLocals 옵션 변경 및 모듈 경로 수정

Assessment against linked issues

Objective Addressed Explanation
v1과 v2 구분하여 database entity 정의 (#13)
google login 구현 (#14)
GET user nickname API 구현 (#15)

Poem

🐰 변화의 바람이 불어와
새로운 길을 열어주네,
사용자 닉네임을 찾아서,
구글 로그인도 함께해,
모든 것이 새로워지는 이 순간,
우리 함께 뛰어보자, 기쁘게! 🌟


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
🪧 Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit , please review it.` - `Generate unit testing code for this file.` - `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 generate unit testing code for this file.` - `@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 generate unit testing code.` - `@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.` 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 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](https://docs.coderabbit.ai/guides/configure-coderabbit) 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](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit. - Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.