Repository navigation
feat: 변동메뉴 대표메뉴 번역을 menu.name_en으로 동기화 - #495
Merged
Merged
Conversation
📊 테스트 커버리지 리포트
|
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.
#️⃣ Issue Number
📝 요약(Summary)
kimchi)로 변동메뉴를 찾지 못하던 문제를 해결합니다.meal_main_menu.name_en에만 저장되는데, 찜 검색과 찜 목록은menu.name_en만 조회합니다. 그래서 번역이 있는 변동메뉴도 영어로 검색되지 않았습니다.menu.name_en에도 함께 저장합니다.MealService.upsertMainMenus에서meal_main_menu를 저장하는 같은 트랜잭션 안에서, 식단에 포함된 같은 이름의Menu의name_en을 최신 번역으로 갱신합니다.createMeal,createMealWithPrice)과 슬롯 조정(reconcileMealSlot, feat: 식단 슬롯 단위 조정 API 추가 #490)이 모두 이 메서드를 거치므로 두 경로에 함께 적용됩니다.Menu.updateNameEn은 번역이 null이거나 공백이면 기존 값을 유지합니다. 다음 식단에서 대표메뉴로 빠진 메뉴도 기존 번역을 유지합니다.V29__backfill_menu_name_en_from_meal_main_menu.sqlmenu.name_en을VARCHAR(255)에서VARCHAR(500)으로 늘립니다.meal_main_menu.name_en이 500자라서, 255자를 넘는 번역이 들어오면 식단 등록 트랜잭션 전체가 실패할 수 있기 때문입니다.meal.date)의 공백이 아닌 번역을 쓰고,name_en이 비어 있는 메뉴만 채워서 기존 고정메뉴(SNACK_CORNER) 번역은 덮어쓰지 않습니다.💬 공유사항 to 리뷰어
✅ PR Checklist
PR이 다음 요구 사항을 충족하는지 확인하세요.