[#596] SearchView에서 '#' 뒤 숫자를 입력했을 때 숫자 기반이 아닌 문자열 기반으로 검색하도록 수정한다#644
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
이번 PR은 Todo 검색 매칭 로직을 TodoResponse 익스텐션으로 분리하고 관련 단위 테스트를 추가하는 변경을 담고 있습니다. 피드백으로는 필터링 루프 내에서 매번 키워드 정규화가 실행되어 성능 저하가 우려되는 부분을 지적하며, 루프 외부에서 정규화를 한 번만 수행한 뒤 재사용할 수 있도록 메서드 구조를 개선할 것을 제안했습니다.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
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.
🔗 연관된 이슈
🎯 의도
#뒤 숫자를 입력했을 때 Todo 번호를 일치가 아닌 문자열 기반으로 검색하도록 수정📝 작업 내용
📌 요약
Int정확 일치에서#\(number)문자열 포함 비교로 변경#0001처럼 선행 0이 포함된 숫자 검색어 정규화 처리 추가🔍 상세
searchedTodoNumber(from:)기반 숫자 파싱 제거TodoResponse.matchesSearchKeyword(_:)로 제목, 본문, 태그, Todo 번호 검색 조건 통합#1,#12가#123을 검색 결과로 포함하도록 변경#0001이#123을 검색 결과로 포함하도록 선행 0 제거 처리#단독 검색어는 Todo 번호로 매칭하지 않도록 테스트 고정📸 영상 / 이미지 (Optional)
없음