You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Show a cancelled or partial restore as a warning, not a green success #793
The result box is green with a check-mark icon and reads "Restore cancelled", while the line under it says "Rolled back, but part of the file had already been applied … so the structural changes stand." Green plus a check says "all good" when the database was partly changed.
Related on the same box:
On "Production (read-only)" with "Stop on error" unchecked, the heading reads "Stopped after 3480 error(s); 0 statements had run" — nothing stopped; the whole file ran and every statement failed.
The repeated error lines ("Statement 1: … 1290 …") trigger React's "Encountered two children with the same key" console error.
Cause
src/components/backup/RestoreDialog.tsx:362-370 picks success vs warning styling on statementsFailed === 0 only, ignoring summary.cancelled and summary.partiallyApplied.
:378 always says "Stopped after", regardless of stopOnError.
Use warning styling and the alert icon when cancelled || partiallyApplied || statementsFailed > 0; keep green only for a clean full run. Word the heading by options.stopOnError (e.g. "Finished with N errors" when it was off). Key the error list by index.
Activity
fix(restore): warn on a cancelled or partial restore
release: 1.4.0 (#871)