Skip to content

Conversation

@JIWONKIMS
Copy link
Collaborator

Summary

  • Region enum 타입 불일치 해결
  • Region.values()Region.entries로 업데이트 (Kotlin 1.9+ 권장)
  • 한글/영문 지역명 모두 지원

Changes

  • UserRepository: findByRoleAndLocationContainsfindByRoleAndLocation으로 변경
  • GuideService: String → Region enum 변환 로직 (한글 displayName, 영문 name 둘 다 지원)
  • Region.values()Region.entries 업데이트

Test plan

  • 가이드 지역별 조회 기능 정상 동작 확인
  • 한글/영문 지역명으로 검색 테스트

🤖 Generated with Claude Code

JIWONKIMS and others added 19 commits October 3, 2025 11:00
- Docker 빌드 시 테스트 및 ktlint 스킵 설정
- 테스트 환경에서 Redis Bean 문제 해결
  - TestConfig 추가하여 Mock RedisConnectionFactory 제공
  - application-test.yml에 Redis AutoConfiguration 제외 설정
  - 모든 테스트 클래스에 @import(TestConfig::class) 적용
- Ktlint 스타일 수정
  - RedisConfig, SecurityConfig, AiChatController 포맷팅 수정
  - AppConfig 파일 끝 개행 추가

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Spring AI was attempting to execute H2-specific schema (schema-h2.sql) on PostgreSQL,
causing infinite restart loop due to unsupported CLOB type.

Changes:
- Set spring.sql.init.mode to never in application.yml
- Add spring.ai.vectorstore.jdbc.initialize-schema: false in application-prod.yml
- Remove schema-locations pointing to H2 schema

Fixes database initialization error: type "clob" does not exist

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Added CONTAINER_2_NAME environment variable to support proper Blue/Green
deployment. Without this, the GREEN variable was empty, causing containers
to be created with random names instead of team11_1/team11_2.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Added /actuator/health to permitAll in SecurityConfig to enable
container health checks during Blue/Green deployment.

Without this, health checks fail due to authentication requirement,
causing deployment rollback.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Temporarily permit /weather/test1 endpoint to test Redis caching
without authentication in production environment.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
# Conflicts:
#	src/test/kotlin/com/back/koreaTravelGuide/domain/ai/tour/client/TourApiClientTest.kt
- UserRepository.findByRoleAndLocationContains -> findByRoleAndLocation 변경
- location 파라미터 타입: String -> Region enum으로 변경
- GuideService에서 String을 Region enum으로 변환하는 로직 추가
- upstream merge 후 발생한 타입 불일치 해결을 위한 임시 수정

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@JIWONKIMS JIWONKIMS changed the title fix: Region enum 타입 불일치 해결 및 Region.entries 적용 fix: 주석 추가 Oct 10, 2025
Copy link
Collaborator

@YangHJ2415 YangHJ2415 left a comment

Choose a reason for hiding this comment

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

확인 했습니다.

@JIWONKIMS JIWONKIMS merged commit 8fe4b95 into main Oct 10, 2025
4 checks passed
@JIWONKIMS JIWONKIMS deleted the feat/be/57 branch October 10, 2025 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants