Skip to content

fix: show error message when restoring a file version fails - #4102

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/version-restore-error
Nov 2, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/version-restore-error

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Description

When restoring a version fails, e.g. because the file is locked, we now show "Failed to restore version" instead of silently doing nothing.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: failed restore shows the error message and doesn't update the resource
  • test case 2: browser: locked file (423) on desktop and Pixel 7 shows the error, no uncaught rejection; restoring an unlocked file still works

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear
AlexAndBear merged commit 3a3a0c6 into main Nov 2, 2026
29 checks passed
@AlexAndBear
AlexAndBear deleted the fix/version-restore-error branch November 2, 2026 08:08
@openclouders openclouders mentioned this pull request Nov 2, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restoring a file version fails silently

2 participants