Skip to content

πŸ”¨ Fix - 아이디 μ°ΎκΈ° μ‹œ, DeletedAt κ³ λ €ν•˜λ„λ‘ λ³€κ²½#795

Merged
dongkyeomjang merged 1 commit into
devfrom
Fix/#794
Aug 22, 2025
Merged

πŸ”¨ Fix - 아이디 μ°ΎκΈ° μ‹œ, DeletedAt κ³ λ €ν•˜λ„λ‘ λ³€κ²½#795
dongkyeomjang merged 1 commit into
devfrom
Fix/#794

Conversation

@dongkyeomjang

@dongkyeomjang dongkyeomjang commented Aug 22, 2025

Copy link
Copy Markdown
Contributor

Related issue πŸ› 

closed #794

μ–΄λ–€ 변경사항이 μžˆμ—ˆλ‚˜μš”?

  • ✨ Feature: New feature
  • πŸ”¨ Fix: Feature change or bug fix
  • πŸ’» CrossBrowsing: Browser compatibility
  • 🌏 Deploy: Deploy
  • 🎨 Design: Markup & styling
  • πŸ“ƒ Docs: Documentation writing and editing (README.md, etc.)
  • ♻️ Refactor: Code refactoring
  • βš™οΈ Setting: Development environment setup
  • βœ… Test: Test related (storybook, jest, etc.)

CheckPoint βœ…

PR이 λ‹€μŒ μš”κ΅¬ 사항을 μΆ©μ‘±ν•˜λŠ”μ§€ ν™•μΈν•˜μ„Έμš”.

  • PR μ»¨λ²€μ…˜μ— 맞게 μž‘μ„±ν–ˆμŠ΅λ‹ˆλ‹€. (ν•„μˆ˜)
  • μ½”λ“œκ°€ μ •μƒμ μœΌλ‘œ λ™μž‘ν•©λ‹ˆλ‹€. (ν•„μˆ˜)
  • μ½”λ“œ λ¦¬λ·°μ–΄μ—κ²Œ 리뷰λ₯Ό μš”μ²­ν–ˆμŠ΅λ‹ˆλ‹€. (ν•„μˆ˜)

Work Description ✏️

μž‘μ—… λ‚΄μš©μ„ μž‘μ„±ν•΄μ£Όμ„Έμš”.

  • 아이디 μ°ΎκΈ° μ‹œ, DeletedAt κ³ λ €ν•˜λ„λ‘ λ³€κ²½

Uncompleted Tasks πŸ˜…

N/A

To Reviewers πŸ“’

리뷰어가 μ•Œλ©΄ 쒋은 λ‚΄μš©μ„ μž‘μ„±ν•΄μ£Όμ„Έμš”.

Summary by CodeRabbit

  • 버그 μˆ˜μ •
    • νœ΄λŒ€ν° λ²ˆν˜Έμ™€ μ΄λ¦„μœΌλ‘œ μ‚¬μš©μž 쑰회 μ‹œ, μ‚­μ œλœ 계정이 결과에 ν¬ν•¨λ˜λ˜ 문제λ₯Ό μˆ˜μ •ν–ˆμŠ΅λ‹ˆλ‹€. 이제 μ‚­μ œ(λΉ„ν™œμ„±)된 계정은 쑰회 λŒ€μƒμ—μ„œ μ œμ™Έλ˜λ©°, 인증·계정 μ°ΎκΈ° κ³Όμ •μ—μ„œ β€˜κ³„μ •μ„ 찾을 수 μ—†μŒβ€™μœΌλ‘œ μ•ˆλ‚΄λ©λ‹ˆλ‹€. 이둜써 데이터 μ •ν•©μ„±κ³Ό λ³΄μ•ˆμ„±μ΄ ν–₯μƒλ˜κ³ , 잘λͺ»λœ 계정 맀칭으둜 μΈν•œ μ˜€νƒμ΄ κ°μ†Œν•©λ‹ˆλ‹€.

@dongkyeomjang dongkyeomjang self-assigned this Aug 22, 2025
@dongkyeomjang dongkyeomjang added the πŸ”¨ Fix κΈ°λŠ₯ λ³€κ²½ or 버그 ν•΄κ²° label Aug 22, 2025
@dongkyeomjang dongkyeomjang merged commit 965ed50 into dev Aug 22, 2025
2 checks passed
@coderabbitai

coderabbitai Bot commented Aug 22, 2025

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

Walkthrough

User lookup now filters out soft-deleted accounts by changing the JPA method to include DeletedAt is null and updating the repository implementation to call the new method. The exception behavior remains unchanged.

Changes

Cohort / File(s) Summary
Soft-delete filter in user lookup
src/main/java/com/tookscan/tookscan/account/repository/mysql/UserJpaRepository.java, src/main/java/com/tookscan/tookscan/account/repository/impl/UserRepositoryImpl.java
Renamed derived query to findByPhoneNumberAndNameAndDeletedAtIsNull(...) and updated the impl to use it, adding a soft-delete (deletedAt IS NULL) predicate to user retrieval by phone and name.

Sequence Diagram(s)

sequenceDiagram
  participant Service
  participant UserRepositoryImpl
  participant UserJpaRepository
  participant DB

  Service->>UserRepositoryImpl: findByPhoneNumberAndNameOrElseThrow(phone, name)
  UserRepositoryImpl->>UserJpaRepository: findByPhoneNumberAndNameAndDeletedAtIsNull(phone, name)
  UserJpaRepository->>DB: SELECT ... WHERE phone=? AND name=? AND deleted_at IS NULL
  DB-->>UserJpaRepository: Optional<User>
  alt User found
    UserJpaRepository-->>UserRepositoryImpl: User
    UserRepositoryImpl-->>Service: User
  else Not found
    UserRepositoryImpl-->>Service: throw NOT_FOUND_ACCOUNT
  end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

ν† λΌλŠ” 깑총, 데이터 μˆ²μ„ λ›°λ„€
μ‚­μ œ ν‘œμ‹ null인지 μ‚΄ν¬μ‹œ μ‚΄ν”Όλ„€
이름과 번호, λ§žλ‹€λ©΄ OK!
μ§€μ›Œμ§„ 발자ꡭ이면 κ·ΈλŒ€λ‘œ νŒ¨μŠ€ν•΄
깑총깑총, κΉ”λ”ν•œ μ‘°νšŒμ— κ·€κ°€ μΆ€μΆ”λ„€ πŸ₯•βœ¨

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: Free

πŸ’‘ Knowledge Base configuration:

  • Jira integration is disabled
  • Linear integration is disabled

You can enable these sources in your CodeRabbit configuration.

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between d456149 and ff7d3a8.

πŸ“’ Files selected for processing (2)
  • src/main/java/com/tookscan/tookscan/account/repository/impl/UserRepositoryImpl.java (1 hunks)
  • src/main/java/com/tookscan/tookscan/account/repository/mysql/UserJpaRepository.java (1 hunks)

Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

πŸͺ§ 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? Join our Discord community 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.

@dongkyeomjang dongkyeomjang deleted the Fix/#794 branch August 22, 2025 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

πŸ”¨ Fix κΈ°λŠ₯ λ³€κ²½ or 버그 ν•΄κ²°

Projects

None yet

Development

Successfully merging this pull request may close these issues.

πŸ”¨ Fix - 아이디 μ°ΎκΈ° μ‹œ, DeletedAt κ³ λ €ν•˜λ„λ‘ λ³€κ²½

1 participant