Skip to content

Conversation

@chock-cho
Copy link
Member

@chock-cho chock-cho commented Feb 13, 2025

💡 작업 내용

  • QA 작업 중 발견한 공고 필터링 (성별 무관한 공고(genderType = ALL)에 대하여 남/녀로 필터링했을 때 보이지 않는 현상)) 관련 버그를 해결했습니다.

밑의 사진은 성별 무관하게 등록된 공고에 대하여, 필터링을 성별로 걸었을 때 각 케이스에 대해 정상적으로 응답이 오는지 확인한 내용입니다.

case 1. 필터링을 genderType = ALL 로 했을 때

공고 전체조회(성별ALL, ALL)

case 2. 필터링을 genderType = MALE 로 했을 때

공고 전체조회(성별ALL)

case 2. 필터링을 genderType = FEMALE 로 했을 때

공고 전체조회(성별ALL, FEMALE)

✅ 셀프 체크리스트

  • PR 제목을 형식에 맞게 작성했나요?
  • 브랜치 전략에 맞는 브랜치에 PR을 올리고 있나요?
  • 테스트는 잘 통과했나요?
  • 빌드에 성공했나요?
  • 본인을 assign 해주세요.
  • 해당 PR에 맞는 label을 붙여주세요.

🙋🏻‍ 확인해주세요

  • 관련된 Discussion 등이 있다면 첨부해주세요

Summary by CodeRabbit

  • 새로운 기능
    • 실험 게시물의 성별 필터링이 개선되어, '전체' 옵션 선택 시에도 관련 게시물이 포괄적으로 표시됩니다. 이를 통해 사용자에게 보다 정확한 필터링 결과와 향상된 탐색 경험을 제공합니다.

@chock-cho chock-cho added the 🐛 BUG 버그 label Feb 13, 2025
@chock-cho chock-cho self-assigned this Feb 13, 2025
@coderabbitai
Copy link

coderabbitai bot commented Feb 13, 2025

Walkthrough

이번 변경은 ExperimentPostCustomRepositoryImpl 클래스의 genderEq 함수 로직을 수정하였습니다. 기존에는 대상 그룹의 성별과 파라미터 값이 일치하는지 여부만을 확인했으나, 업데이트된 로직은 대상 그룹의 성별이 GenderType.ALL인 경우에도 조건을 충족하도록 추가 검사를 수행합니다. 이로 인해 성별 필터링 기준이 보다 포괄적으로 개선되었습니다.

Changes

파일 변경 요약
src/.../ExperimentPostCustomRepositoryImpl.kt genderEq 함수 수정: GenderType.ALL 조건 추가하여 필터링 로직 확장

Sequence Diagram(s)

sequenceDiagram
    participant Caller as 호출자
    participant Repo as ExperimentPostCustomRepositoryImpl

    Caller->>Repo: genderEq(파라미터 성별) 호출
    Repo-->>Repo: 대상 그룹 성별과 파라미터 비교
    alt 성별 일치
        Repo-->>Caller: 일치 결과 반환 (true)
    else
        Repo-->>Repo: 대상 그룹 성별이 ALL 인지 확인
        alt ALL 인 경우
            Repo-->>Caller: 일치 결과 반환 (true)
        else
            Repo-->>Caller: 불일치 결과 반환 (false)
        end
    end
Loading

Poem

귀여운 토끼가 속삭여요,
코드에 새 봄이 내려와요,
성별 조건이 넓어졌네,
ALL의 빛으로 다 감싸네,
한 줄 한 줄 품격 넘치는,
변화의 향기에 토실토실 춤춰요!
🐰🌸


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a1c0c54 and 6877930.

📒 Files selected for processing (1)
  • src/main/kotlin/com/dobby/backend/infrastructure/database/repository/ExperimentPostCustomRepositoryImpl.kt (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build
🔇 Additional comments (1)
src/main/kotlin/com/dobby/backend/infrastructure/database/repository/ExperimentPostCustomRepositoryImpl.kt (1)

106-109: 성별 무관 공고가 성별 필터링에 포함되도록 수정되었습니다!

genderEq 함수의 로직이 개선되어 성별 무관(GenderType.ALL) 공고가 성별 필터링 시에도 정상적으로 표시됩니다. 이는 QA에서 발견된 문제를 효과적으로 해결합니다.


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
🪧 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.
    • 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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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 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 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.

@chock-cho chock-cho requested a review from Ji-soo708 February 13, 2025 05:56
Copy link
Member

@Ji-soo708 Ji-soo708 left a comment

Choose a reason for hiding this comment

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

LGTM! 아까 발견했던 버그인데 빠르게 해결해주셨네요. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 BUG 버그

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants