feat: writer 컬럼 자동 user_name 변환 완료

- writer 컬럼이 있는 테이블에서 자동으로 user_name 표시
- 백엔드: entityJoinService에서 writer 컬럼 감지 및 user_info 조인
- 프론트엔드: entityJoinApi 항상 사용 및 writer_name 자동 표시
- 디버깅 로그 제거
This commit is contained in:
kjs
2025-11-10 16:38:16 +09:00
parent 605fbc4383
commit 49f779e0e4
2 changed files with 3 additions and 23 deletions

View File

@@ -60,8 +60,6 @@ export class EntityJoinService {
);
if (tableColumns.length > 0) {
logger.info(`✅ writer 컬럼 발견: ${tableName}.writer -> user_info.user_id`);
const writerJoinConfig: EntityJoinConfig = {
sourceTable: tableName,
sourceColumn: "writer",
@@ -73,20 +71,9 @@ export class EntityJoinService {
separator: " - ",
};
logger.info(`🔍 writer 조인 설정:`, JSON.stringify(writerJoinConfig, null, 2));
// 조인 설정 유효성 검증
const isValid = await this.validateJoinConfig(writerJoinConfig);
logger.info(`🔍 writer 조인 검증 결과: ${isValid}`);
if (isValid) {
if (await this.validateJoinConfig(writerJoinConfig)) {
joinConfigs.push(writerJoinConfig);
logger.info(`✅ writer 컬럼 조인 설정 추가됨: writer_name`);
} else {
logger.warn(`❌ writer 컬럼 조인 설정 검증 실패`);
}
} else {
logger.info(` writer 컬럼 없음: ${tableName}`);
}
for (const column of entityColumns) {