The GitHub Actions job "CI" on 
rocketmq-dashboard.git/codex/instance-import-guard has failed.
Run started by GitHub user tju-yxq (triggered by tju-yxq).

Head commit for run:
63fc16df74479d18c9961860d3b4eb9cd573f99f / Yxq <[email protected]>
fix(web): share the modal mutation guard with the one-click import

The add-instance modal enforces one mutation at a time between create
and update through mutationInFlightRef (pinned by the duplicate-create
test), but handleImportAll only checked its own importing flag: while
Connect was pending the 一键导入 button stayed fully active, and vice
versa. Starting the second mutation interleaved two modal lifecycles —
both handlers close and reset the modal and reload the instance list on
completion, so the loser's finally reloaded the list again and the
modal was closed/reset under the still-pending winner.

Make handleImportAll participate in the shared ref guard and reflect
the cross-flight state on both footer buttons (导入 disabled while
submitting, 连接 disabled while importing).

Report URL: 
https://github.com/apache/rocketmq-dashboard/actions/runs/37030408292

With regards,
GitHub Actions via GitBox

Reply via email to