Repository navigation
fix(migrate): 시작 요청 중에도 Plan 화면과 이주 지도를 유지한다 - #130
Merged
Merged
Conversation
승인 뒤 시작 요청을 처리하는 동안 Plan은 이미 starting이지만 runId는 아직 없다. 이때 단계가 setup으로 떨어져 지도(setup에는 없음) iframe이 사라졌다가 다시 만들어져 잠시 빈 화면이 됐다. Plan이 반려되지 않았으면 review를 유지한다.
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.
문제
승인(이전 시작) 버튼을 누르면 아래 이주 지도가 잠시 사라졌다가 다시 나타났다. #126 뒤에도 남은 증상이다.
원인
승인 뒤
startMigration이 시작 검사로 몇 초 걸리는 동안, Plan 목록 폴링이 Plan 상태starting을 먼저 가져온다. 이때runId는 아직 없어서 #126의 조건(runId && plan)에 걸리지 않고 단계가 setup이 된다. setup 화면에는 지도가 없어서(map=null) iframe이 언마운트되고, runId가 오면 새로 마운트되어 지도 페이지를 다시 불러온다.변경
Plan이 있고 반려되지 않았으면(
pending_approval,approved,starting,started) review 단계를 유지한다. 반려와 '다른 경로로 이전'은 planRef를 지우므로 setup으로 돌아간다.확인
tsc --noEmit통과vitest run src/App.test.tsx src/data20 files, 270 tests 통과