[project] 프로젝트 수정 승인 시 datagsm 프로젝트 이름 중복 오류 해결#91
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates AdminApproveProjectService to check for existing projects in datagsm by title before registering them, mapping the existing ID if found. It also adds a null check for the registered project's ID. The review feedback suggests adding safety checks to prevent potential NullPointerExceptions when calling external APIs: specifically, checking if the response from datagsmApiClient.createProject is null before retrieving its ID, and ensuring the response and project list from dataGsmOpenApiClient are not null before streaming.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
71da06f to
98869f3
Compare
wwwcomcomcomcom
left a comment
There was a problem hiding this comment.
승인 시 동일 이름 프로젝트가 datagsm에 이미 존재하면 ID를 재사용하고 생성을 생략하는 방식이 올바릅니다. null 체크 및 예외 처리도 적절합니다. LGTM
생성 전 datagsm에 동일 이름이 있으면 그 id를 매핑하고 createProject를 생략
98869f3 to
8d28b4e
Compare
개요
EveryGSM에 등록·승인된 프로젝트를 수정 후 관리자가 승인할 때, datagsm에 동일 이름으로 다시 등록(POST)을 시도하여
409 CONFLICT (이미 존재하는 프로젝트 이름입니다.)가 발생합니다. datagsm에는 프로젝트 수정 API가 없어, "이미 있으면 매핑·없으면 생성" 전략으로 해결합니다.작업 내용
AdminApproveProjectService.registerToDatagsm수정createProject호출 전 datagsm에 동일 이름 프로젝트가 있는지 조회(getProjects(projectName=...))하여, 있으면 그 id를externalProjectId로 매핑하고 생성을 생략createProject호출createProject응답 id가 null이면 예외를 던져 externalProjectId 없이 APPROVED가 커밋되던 근본 결함 차단DataGsmOpenApiClient의존성 주입 추가체크리스트
기타