Skip to content

Content Drive: add Publish All for folders #38377

Open

Description

@zJaaal

Description

Content Drive has no way to publish a folder's contents. The legacy Site Browser offers Publish All on a folder's context menu, so editors still go back to it for this.

What the legacy action does today

  • Menu entry in view_browser_menus_js_inc.jsp calls the Struts action /ext/folders/publish_folder (PublishFolderAction).
  • It collects the folder's unpublished related assets with PublishFactory.getUnpublishedRelatedAssets(...), shows them on a "prepublish" confirmation screen, then publishes them with PublishFactory.publishAsset(folder, req).
  • It runs synchronously inside the request.

What Content Drive does today

  • The folder context menu (dot-folder-list-context-menu.component.ts) offers Edit Folder, Duplicate, Edit Permissions, Push Publish / Add to Bundle, Push History and Delete, but not Publish.
  • The Workflow Center quick actions (Publish, Unpublish, Archive...) only count contentlets. Folders are excluded on purpose because they carry no live/working state (utils/workflow-actions.ts), so selecting a folder never offers Publish.

Acceptance Criteria

Preliminary, to be refined:

  • A user can trigger "Publish All" on a folder from Content Drive (context menu, and decide whether the Workflow Center offers it too).
  • Every unpublished item under the folder that the user may publish gets published; items the user cannot publish are skipped and reported, not silently dropped.
  • Large folders do not block the request: the run is asynchronous with visible progress, following the folder delete and duplicate jobs (FolderBulkDeleteProcessor, FolderBulkDuplicateProcessor).
  • The user sees the outcome when the run finishes (success, partial, failed).

Priority

Medium

Additional Context

Open questions for refinement:

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions