Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MOD/#203] 최근 검색어 중복을 제거 하도록 수정합니다 #204

Merged
merged 4 commits into from
Feb 21, 2025

Conversation

angryPodo
Copy link
Collaborator

Related issue 🛠

Work Description ✏️

  • 최근 검색어 중복 제거 및 최신화 되도록 쿼리 수정

Screenshot 📸

recent_search.mp4

To Reviewers 📢

오랜만에 쿼리할라니까 머리가 말랑말랑

@angryPodo angryPodo added MOD✅ 코드 수정 및 내부 파일 수정 💙민재💙 💙민재💙 labels Feb 20, 2025
@angryPodo angryPodo self-assigned this Feb 20, 2025
@angryPodo angryPodo requested a review from a team as a code owner February 20, 2025 14:55
@angryPodo angryPodo linked an issue Feb 20, 2025 that may be closed by this pull request
Copy link
Collaborator

@Hyobeen-Park Hyobeen-Park left a comment

Choose a reason for hiding this comment

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

오랜만에 쿼리할라니까 머리가 말랑말랑
수고하셨습니당!! LGTM🚀🚀

@Query("DELETE FROM search WHERE id = :id")
suspend fun deleteSearchById(id: Int)
// 검색어가 6개 이상인 경우 가장 오래된 검색어 삭제
if (getSearchCount() >= 6) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

P4: 6도 상수로 빼주면 좋을 것 같아요!!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

인정~ 뺄까말까했는데 빼도록 하겠습니다~

Copy link
Collaborator

@chattymin chattymin left a comment

Choose a reason for hiding this comment

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

LGMT~
역시 쿼리는 한민재

Comment on lines +45 to +46
// 빈 문자열이나 공백만 있는 경우 저장하지 않음
if (trimmedText.isBlank()) return
Copy link
Collaborator

Choose a reason for hiding this comment

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

early return 조아요~

@chattymin
Copy link
Collaborator

근데 갑자기 궁금한건데 쟤 왜저렇게 넓음?
패드같은거 애뮬 돌리나여?

Copy link
Member

@Roel4990 Roel4990 left a comment

Choose a reason for hiding this comment

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

고생많으셨습니다~

@angryPodo
Copy link
Collaborator Author

근데 갑자기 궁금한건데 쟤 왜저렇게 넓음? 패드같은거 애뮬 돌리나여?

제가 가진 유일한 안드로이드패드로 녹화했숩니다ㅠ 하지만 대응 잘되죠??

@angryPodo angryPodo merged commit 3b58502 into develop Feb 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MOD✅ 코드 수정 및 내부 파일 수정 💙민재💙 💙민재💙
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MOD] 최근 검색어 중복을 제거 하도록 수정합니다.
4 participants