[Feature 3/4] account-service 가상 데이터 생성기 실사용자 ID 전환 (#168) - #178
Merged
Conversation
hanjyoon01
requested review from
Kimd0ng,
SOOsuhyuncho,
bigwaveBigwave,
hanjyoon01 and
shinh09
August 19, 2026 02:01
hanjyoon01
approved these changes
Aug 19, 2026
shinh09
approved these changes
Aug 19, 2026
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.
관련 이슈
작업 사항
VirtualFinancialDataService:LOGICAL_USER_ID_BASE제거,VirtualUserQueryClient로 이슈 1이 시딩한 실제VirtualUserDataset을 조회해 호출하는generate()/generateForUsers(List<VirtualUserIdentity>, VirtualDatasetContext)추가. 날짜 계산은context.referenceDate()기준, 은행·소비 프로필은 순번(ordinal)과 randomSeed로 결정.VirtualFinancialTransactionGenerator: 순번 상한 검증이 고정 사용자 수에 종속되지 않도록 완화, randomSeed를 반영하는 소비 프로필 오버로드 추가.VirtualFinancialDataSeedInitializer추가:virtual-test.enabled=true면 앱 기동 중generate()를 자동 호출해 가상회원 전체의 계좌·거래를 미리 생성.SmartInitializingSingleton으로 구현해 user-service의 가상회원 시딩(VirtualUserSeedInitializer) 완료 이후에 실행되도록 순서를 보장하되, 컴파일 의존성이나 빈 이름 결합 없이 동작.USERS.user_id기준으로 갱신, 기동 순서 보장 테스트 추가.참고 사항
user-local.properties에 아래 6줄 추가하면 가상 데이터 생성됨.
virtual-test.enabled=true
virtual-test.user-count=50
virtual-test.random-seed=20260817
virtual-test.reference-date=2026-08-17
virtual-test.dataset-version=VIRTUAL-MULTI-DOMAIN-v1
deployment.environment=local
deployment.environment는 반드시 local 또는 test여야 함. 비워두면 unknown으로 기본값이 들어가는데, 이 상태에서 virtual-test.enabled=true면 VirtualTestProperties 빈 생성 시점에 IllegalStateException을 던지며 앱 기동 자체가 실패함 (운영 환경에 실수로 켜지는 걸 막는 안전장치).
가상회원 로그인은 JSON 본문에 virtualUserNumber를 담아 보내면 됨. 현재 virtualUserNumber은 50까지
POST /api/auth/virtual-login
Content-Type: application/json
{ "virtualUserNumber": 1 }