[DP-462] 태그 대소문자 정규화 및 한국어→영어 rename#162
Merged
Merged
Conversation
- TagRepository: findByNameIgnoreCase(String) 메서드 추가 - UserService.findOrCreateTags(): findByName → findByNameIgnoreCase 교체 (css 입력 시 CSS 재사용, 신규 row 미생성) - data.sql: 중복 태그 병합 마이그레이션 (css→CSS, Github→GitHub) 및 한국어 태그 영어 rename (알고리즘→Algorithm 등 10개) - UserServiceTest: 대소문자 무관 태그 재사용 / 신규 생성 케이스 테스트 추가
|
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.



Summary
UserService.findOrCreateTags()가findByName(대소문자 구분)을 사용해css입력 시CSSrow를 찾지 못하고 중복 생성하는 버그 수정 →findByNameIgnoreCase로 교체알고리즘,네트워크등 10개)를 AI 프롬프트 기준 영어 이름으로 rename,content_tags매칭 누락 해소data.sql서버 시작 시 자동으로 실행되는 멱등 마이그레이션 SQL 추가 (중복 태그 병합 + 한국어→영어 UPDATE)변경 파일
TagRepository.javafindByNameIgnoreCase(String)메서드 추가UserService.javafindOrCreateTags—findByName→findByNameIgnoreCase교체data.sqlUserServiceTest.javafindByNameIgnoreCase로 교체인수 조건 체크
Test plan
./gradlew build --no-daemon빌드 + 전체 테스트 통과UserService커버리지 90% instruction / 100% branch (SonarCloud 80% 기준 초과)updateProfile_tags_caseInsensitive_reusesExistingTag— 소문자 입력 시 대문자 DB 태그 반환, save() 미호출 확인updateProfile_tags_unknown_createsNewRow— 미존재 태그 신규 생성 확인