Skip to content

[FEAT] CD: Asynchronous Folder Move/Copy Handling with UI #32357

Description

@fmontes

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

Activity

  1. added theissue type on Jun 6, 2025
  2. zJaaal commented on Aug 24, 2026

    @zJaaal
    Member

    Heads up on one success criterion here, surfaced while filing the implementation tasks underneath (#37062, #37063).

    Moving and copying folders containing a large number of assets is processed asynchronously.

    Copy: yes. FolderFactoryImpl.copy genuinely 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.move mints a new folder identifier and then re-points every descendant one row at a time (findContentletsByFolder unpaged, then contentletAPI.move / fileAssetAPI.moveFile / pageAssetAPI.move per item). contentlet.folder holds the folder inode, so preserving the inode means no contentlet row has to change at all. renameFolder was already rewritten that way: set-based UPDATE identifier SET parent_path over the subtree, plus an async ES reindex queued through dist_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.

  3. zJaaal commented on Aug 25, 2026

    @zJaaal
    Member

    Retracting my earlier comment above. It argued that move should drop out of this feature's async requirement. That was based on rewriting FolderFactoryImpl.move as an in-place identifier.parent_path rewrite, 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions