Skip to content

fix: keep moved items in favorites and search results - #4282

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/sse-move-flat-lists
Nov 6, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/sse-move-flat-lists

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

When another session moved a file, Favorites, the search results and the share lists dropped it, because every move counted as "moved out of the current folder" and these lists don't have one. Now they reload the moved item and show it with its new location, and only drop it if it can't be loaded anymore.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: a moved item in a list without a current folder is reloaded and updated instead of removed, and removed if it can't be loaded or its space is unknown
  • test case 2: browser: Favorites and search results keep a file moved by another session and show its new location (desktop and Pixel 7), both dropped it on main
  • test case 3: browser: moving a file out of or into an open folder, opening the moved favorite and the Shared with others list still work

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 e2a4866 into main Nov 6, 2026
29 checks passed
@AlexAndBear
AlexAndBear deleted the fix/sse-move-flat-lists branch November 6, 2026 12:23
@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.

Favorites and search results drop a file when another session moves it

2 participants