From 5d65e14e4ca05058f599bbf6728e6befbc11652c Mon Sep 17 00:00:00 2001 From: umsangdon Date: Sun, 25 Oct 2026 08:37:55 +0900 Subject: [PATCH] =?UTF-8?q?fix(520-4):=20B06=20[>]=20=EC=9D=B4=EB=AF=B8=20?= =?UTF-8?q?=ED=99=95=EC=A0=95=EC=9D=B4=EC=96=B4=EB=8F=84=20=EB=B0=B0?= =?UTF-8?q?=EC=88=98=EC=9C=A0=EC=97=AD=20=EB=82=A1=EC=9D=8C=EC=9D=B4?= =?UTF-8?q?=EB=A9=B4=20=ED=99=95=EC=A0=95=20=EC=A0=80=EC=9E=A5=20=E2=80=94?= =?UTF-8?q?=20=EC=84=9C=EB=B2=84=20=EA=B4=80=20=EC=B0=A8=EB=A1=80=EA=B0=80?= =?UTF-8?q?=20=ED=95=9C=20=EB=B2=88=20=EB=8B=A4=EC=8B=9C=20=EC=85=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 옛 낡음 확인 창이 막던 길(단계 2 · 3 완료 · 고침 없음 · 배수유역 낡음)을 건너뜀 판정에 넣음 - 시험 298_3 글 약속 새 길 Co-Authored-By: Claude Opus 5.5 --- A00_Common/design/design_shared.ts | 5 ++++- resources/tester/test_298_3_save_shape.py | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/A00_Common/design/design_shared.ts b/A00_Common/design/design_shared.ts index 77d92cd9c..e4f1cbee4 100644 --- a/A00_Common/design/design_shared.ts +++ b/A00_Common/design/design_shared.ts @@ -421,7 +421,10 @@ export function confirmAndGo(shared: DesignPageShared, route: RoutePath): void { void moveStage(id, route, [ { name: "설계 확정", - run: async () => (await alreadyConfirmed(id)) || saveSharedDesign(shared, true), + // 배수유역 낡음 = 확정 저장으로(서버 관 차례가 다시 셈) · 그 밖 이미 확정이면 저장 없이 감 + run: async () => + (!shared.profile?.side?.stale() && (await alreadyConfirmed(id))) || + saveSharedDesign(shared, true), progress: () => designSaveProgress(id), }, ]); diff --git a/resources/tester/test_298_3_save_shape.py b/resources/tester/test_298_3_save_shape.py index 2ad88e8c0..9071388f3 100644 --- a/resources/tester/test_298_3_save_shape.py +++ b/resources/tester/test_298_3_save_shape.py @@ -98,7 +98,8 @@ def test_3_고친_것_없고_단계_완료면_바로_이동(): go = shared[shared.index("export function confirmAndGo(") :] go = go[: go.index("\n}\n")] # 잠금판 한 단계 — 확정됐으면 저장 없이 이동(520-4 moveStage) - assert "run: async () => (await alreadyConfirmed(id)) || saveSharedDesign(shared, true)," in go + assert "(!shared.profile?.side?.stale() && (await alreadyConfirmed(id))) ||" in go + assert "saveSharedDesign(shared, true)," in go # 줄 세움 = [저장] · 확정 한 곳 assert "await queueDesignSave(shared.projectId, confirm, () =>" in shared assert "saveOnce(shared, confirm, moved)," in shared