Skip to content

fix: list a partially duplicated space and tell the user it's incomplete - #4290

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/space-duplicate-partial
Nov 6, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/space-duplicate-partial

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

When duplicating a space failed partway, the half-filled copy stayed hidden on the server and every retry created another space with the same "(1)" name. The copy is now listed right away, the message says it was created but couldn't be duplicated completely, and a retry picks a free name.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: a failed file copy still lists the new space with the partial message, a retry gets "(2)", a failed image/readme step lists the space too, and a successful duplicate is stored once with its image data
  • test case 2: browser: with one file copy failing, main showed "Failed to duplicate space", listed nothing and created two hidden "(1)" spaces; now "(1)" and "(2)" are listed right away with the partial message and can be opened and deleted
  • test case 3: browser: a successful duplicate of a space with an image still has all files and its image

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 force-pushed the fix/space-duplicate-partial branch from a62bcb1 to 85734ca Compare November 5, 2026 13:50
@AlexAndBear
AlexAndBear merged commit e4345ef into main Nov 6, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/space-duplicate-partial branch November 6, 2026 13:27
@openclouders openclouders mentioned this pull request Nov 6, 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.

A failed space duplicate leaves a hidden partial copy and retries reuse its name

2 participants