Repository navigation
Open
Description
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.jspcalls 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 withPublishFactory.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:
- Workflow or direct publish? The legacy path calls
PublishFactorydirectly, which bypasses workflow actions and their sub-actions. Should Content Drive fire each item's Publish workflow action instead, so the schemes' rules apply? - Recursion: subfolders included, as in legacy? Any limit, like the 50-folder cap on bulk duplicate (see [DEFECT] /api/v1/jobs/folderBulkDuplicate skips the 50-folder limit that Content Drive's bulk duplicate enforces #37883)?
- Per-item results: should reuse the outcome model being designed in Workflow Center: per-item execution results, and enrich _bulkfire to support them #36894 rather than invent a second one.
- Concurrency: what happens if the folder is being deleted or moved during the run (same class of problem as [DEFECT] Content Drive: a folder can be duplicated while another user is deleting it, and the delete rolls back #37895).
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsNew
Activity