Repository navigation
Description
Feature Title
CD: Asynchronous Folder Move/Copy Handling with UI
Problem
When a user moves or copies a folder containing a large number of files, the UI should not block the user from multitasking while the move/copy operation completes.
Goal
By supporting asynchronous move/copy actions for folders the users will be able to multitask and continue using dotcms while the move/copy operation completes thus making our users more efficient.
Ensure a responsive and non-blocking user experience when moving or copying folders containing a large number of assets. Implement asynchronous processing and a dedicated UI to monitor the progress and status of these operations. This prevents the main Content Drive interface from freezing during long-running folder operations.
Personas
- Developer teams
- Content teams
- DevOps teams
- Sys Admin
Demo Expectations
[Describe exactly what someone can show in a bi-weekly demo to prove the value is delivered]
Success Criteria
- Moving and copying folders containing a large number of assets is processed asynchronously.
- A progress UI is displayed during folder move/copy operations.
- The progress UI displays:
- The name of the folder being moved/copied.
- Overall progress (%).
- The number of assets processed.
- Status (copying/moving, completed, failed).
- User can cancel the ongoing folder move/copy operation.
- Success and error messages are displayed upon completion of the operation.
- The user interface provides feedback on:
- The number of assets moved/copied.
- The number of assets that failed to move/copy (with error details).
Demo Expectations
- Demonstrate moving or copying a folder containing a significant number of assets (e.g., 50+ files and subfolders).
- Show the progress UI with real-time updates on the overall progress, assets processed, and status.
- Demonstrate the ability to cancel the move/copy operation.
- Show success and error messages appearing upon completion, along with details of any files that failed.
- Verify that folder operations respects user permissions
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsNew
Activity
zJaaal commentedon Aug 24, 2026
Heads up on one success criterion here, surfaced while filing the implementation tasks underneath (#37062, #37063).
Copy: yes.
FolderFactoryImpl.copygenuinely creates every row (recursing over file assets, pages, links and child folders) inside a single@WrapInTransaction, so it times out on large folders and needs the job queue. Same for bulk delete. That is #37062.Move: no longer, and that is a good thing. Move only looks expensive because
FolderFactoryImpl.movemints a new folder identifier and then re-points every descendant one row at a time (findContentletsByFolderunpaged, thencontentletAPI.move/fileAssetAPI.moveFile/pageAssetAPI.moveper item).contentlet.folderholds the folder inode, so preserving the inode means no contentlet row has to change at all.renameFolderwas already rewritten that way: set-basedUPDATE identifier SET parent_pathover the subtree, plus an async ES reindex queued throughdist_reindex_journal.Rewritten in place (#37165) a folder move is bounded SQL and returns immediately, so it needs no progress UI, no cancel, and no job. The async half of this feature applies to copy and delete only.
Worth reconciling the success criteria here with #37062 / #37063 so the two do not drift, and dropping move from the async requirement if the rewrite lands as specced.
Analysis by Claude (Claude Code), posted from @zJaaal's account.
zJaaal commentedon Aug 25, 2026
Retracting my earlier comment above. It argued that move should drop out of this feature's async requirement. That was based on rewriting
FolderFactoryImpl.moveas an in-placeidentifier.parent_pathrewrite, which has since been rejected in favour of batching the existing implementation (#37165).So this feature's success criteria stand as written. Folder move is asynchronous with a progress UI and cancellation, exactly as specified here, alongside copy.
One addition worth folding into the criteria: because the batched move creates the target folder, relocates children, then deletes the source, an interrupted move leaves both folders in place with contents split between them. That is a state this feature's progress UI has to be able to represent, and it does not arise for copy. Details and the recovery requirement are on #37165.
Analysis by Claude (Claude Code), posted from @zJaaal's account.