Repository navigation
Description
Description
Content Drive has no way to push publish a folder at all, and no way to see a folder's push history. The soon-to-be-deprecated Site Browser portlet has both. This ticket covers the folder push publish family in Content Drive: Push Publish, Add to Bundle, and Push History.
Delete added 2026-08-20. A Delete Folder context menu item came in here rather than waiting on #37063, because
POST /api/v1/assets/folders/_deletealready ships for a single folder (WebAssetResource.java:314) and needs no backend work. Multi-select delete needs the bulk endpoint and stays on #37062 / #37063.
Scope changed 2026-08-20. This was originally "add Push History for folders" alone. Push Publish and Add to Bundle for folders were folded in here because they are the same feature family, share one backend path, and all three are reusing components that already exist. Add to Bundle moved here from #37063, which now covers only copy and move. See Ticket split below.
Surfaces
Both, because "folders can be push published" should be true everywhere and not only on right-click:
- Folder context menu (right-click, in the grid and the sidebar tree, since
getMenuItems()serves both) - Action Center (multi-select), where folders are currently dropped from the selection
Backend status: nothing needed
PublisherAPIImpl.java:251-257 resolves an unrecognized identifier to PusheableAsset.FOLDER via FolderAPI.find() and enforces PermissionAPI.PERMISSION_PUBLISH. A denial comes back as a per-asset entry in errorMessages rather than an exception, which the existing error path already surfaces.
Folder.setIdentifier() (Folder.java:253-256) keeps inode == identifier for folders created by current code, so whichever id the store holds works. Verified against a live instance: 84 folders, 0 where inode <> identifier.
That is the same path Add to Bundle and Push Publish both use, which is why folder ids already work for both.
What exists vs what is needed
| Action | Already there | Work |
|---|---|---|
| Push History | Shared renderer edit_publishing_status_inc.jsp, used by content types, templates and containers |
New folders/push_history.jsp adapter + dialog + menu item. Done in #37146 |
| Add to Bundle | The contentlet branch of the folder context menu already does #store.setShowAddToBundle(true) (dot-folder-list-context-menu.component.ts:241-246), and the shell already passes [assetIdentifier]="$contextMenuData().contentlet.identifier" (dot-content-drive-shell.component.html:62), which folders have |
One menu item. Action Center side: stop dropping folders |
| Push Publish | PushPublishService.getEnvironments() and the $hasPushPublishEnvironments gate (dot-content-drive-action-center.component.ts:247-253, :586-593); DotWorkflowPushPublishComponent + DotWorkflowPushPublishValue; pushPublishAssets(); DotPushPublishDialogService.open() for a spawnable single-asset dialog; no-environment i18n keys. All from #37081 |
Menu item + gate + spawn. Action Center side: stop dropping folders |
Menu order
Folder Settings, Edit Permissions, Push Publish, Add to Bundle, Push History, Delete Folder. The existing two items keep their positions so current muscle memory is undisturbed, the push group is appended beneath them, and Delete goes last as the one entry that destroys something.
Acceptance Criteria
Push History
- A Push History item appears in the folder context menu, from both the grid and the sidebar tree
- Selecting it opens a dialog showing the folder's push publish actions: pushed by, push date, environment, bundle id
- The item is gated on
EDIT_PERMISSIONS, matching the legacy tab's gate (edit_folder.jsp:245-249), server-side as well as in the menu - Empty state is shown when the folder has never been pushed
- The UI is consistent with the other Push History views (content types, templates, containers)
Add to Bundle
- An Add to Bundle item appears in the folder context menu, gated on
PUBLISH - Selecting it opens the existing bundle picker and the folder lands in the chosen bundle
- Selecting one or more folders in the table enables Add to Bundle in the Action Center
- A mixed selection of folders and contentlets sends both in a single call
- A folder the user lacks
PUBLISHon is reported as a failure in the result toast, not silently dropped
Push Publish
- A Push Publish item appears in the folder context menu, gated on
PUBLISH - The item is hidden or disabled when no push publish environment is reachable by the user's role, reusing the
getEnvironments()gate rather than a new check - Selecting it spawns the existing push publish dialog and the folder is queued to the chosen environments
- Selecting one or more folders in the table enables Push Publish in the Action Center
- The result toast reports the server's counts, not the selection size
- Only one action runs at a time, matching the existing
actionExecutionguard
Delete
- A Delete Folder item appears in the folder context menu, gated on
EDITandEDIT_PERMISSIONS—FolderAPIImpl.deleteenforces both, at:438and:456, so gating onEDITalone would offer a delete the server then refuses - It confirms first, and the copy says the folder's contents are deleted with it, since the server delete is recursive
- It deletes by path over the shipped single-folder endpoint
- Both the grid and the sidebar tree refresh once it completes; they reload separately, so the tree would otherwise keep listing a deleted folder
- A failed delete is surfaced through the HTTP error handler and leaves both views untouched
- Multi-select delete is not here: it needs the bulk endpoint on Content Drive: folder copy, async job endpoint and frontend wiring #37062 and is wired on Content Drive: bulk folder delete, async job endpoint and frontend wiring #37063
Creating where children are not allowed
- New, Upload and the drop zone are disabled where the user lacks
CAN_ADD_CHILDRENon the browsed folder. All three create something in it, and the server enforces that permission (FolderAPIImpl:673-676for a folder,ESContentletAPIImpl:605-609for the contentlet an upload creates), so offering them means the user commits to a file or a dialog and only then gets refused - The reason is communicated rather than the affordance silently disappearing, on a wrapper element — a disabled PrimeNG button computes
pointer-events: none, so a tooltip bound to the button itself can never fire - The site root is gated too. Folders carry
CAN_ADD_CHILDRENwith the tree; the root's parent is the host, and nothing reported on it. NeedscanAddChildrenonGET /api/v1/permissions/{assetId}, beside thecanEditPermissionsandcanEditthat method already resolves for the calling user - The gate is resolved once in the store and read by all three affordances, so they cannot disagree about the same folder
- An unknown answer — lookup in flight, or an instance too old to report the field — reads as allowed. The gate softens an affordance the server still guards, so denying on an unknown would strip the buttons from users who hold the permission
Across the board
- Jest specs cover each action's success, partial-failure, and permission-denied paths
- Items are absent for folders the user has no permission to act on
Implementation notes
Context menu. Push both new items into dot-folder-list-context-menu.component.ts. Push History and Edit Permissions already share one EDIT_PERMISSIONS block; the two new items need a PUBLISH gate instead, so they form a second block.
For Push Publish, prefer DotPushPublishDialogService.open() (libs/dotcms-js/src/lib/core/dot-push-publish-dialog.service.ts) over embedding DotWorkflowPushPublishComponent in a new dialog. It is a global subject that the app shell already listens to, and locales, plugins, and experiments all drive it the same way for a single asset. No new dialog component.
The environments gate should not be a second copy of the action center's loadPushPublishEnvironments(). Two components calling getEnvironments() independently is the duplication that was already flagged in review on #37146. Lift it into the content drive store, or a shared signal both can read.
Action Center. The single chokepoint is excludeFolders (utils/action-center.ts:211-212), used in four places: dot-content-drive-shell.component.ts:313, dot-content-drive-toolbar.component.ts:351, and dot-content-drive-action-center.component.ts:470 ($contentlets). It cannot simply be deleted, because lock, unlock and the workflow actions genuinely are contentlet-only. So folder inclusion has to become per action: Add to Bundle and Push Publish operate on every selected item's identifier, everything else keeps excluding folders.
toDistinctIdentifiers (utils/action-center.ts:203) currently takes DotCMSContentlet[]; it only reads .identifier, so it widens to DotContentDriveItem[] without behavior change.
Out of scope
- Publish all, dropped as unsupported. It was previously listed on Content Drive: bulk folder delete, async job endpoint and frontend wiring #37063 as "publish everything under this folder via bulk fire with
+conFolder:<inode>". Not being carried forward. Note for anyone tempted to re-add it: the alternative,PublishFactory.publishAsset(Folder, ...)(PublishFactory.java:206), bypasses workflow schemes entirely. - Copy and move, which stay on Content Drive: bulk folder delete, async job endpoint and frontend wiring #37063 and are blocked on the Content Drive: folder copy, async job endpoint and frontend wiring #37062 endpoints.
- The N+1 in the push history renderer, and the ascending
ORDER BY push_dateshared by every push history view including the paginated/api/v1/content/{id}/push/history. Both pre-existing, both documented on task(content-drive): add push publish actions and delete to folders, gate creation on permissions #35161 #37146. BundleResource.deletePushHistory(:304) requiring only a backend user with no per-asset permission check. Pre-existing and shared by every push history view. Worth its own ticket.
Ticket split
| Ticket | Covers |
|---|---|
| This one | Push Publish, Add to Bundle, Push History for folders, in the context menu and the Action Center |
| #37063 | Copy and move only, blocked on #37062. Publish all dropped, Add to Bundle moved here |
Priority
Medium
Additional Context
Site Browser is being deprecated in favor of Content Drive. All folder management features from Site Browser must be available in Content Drive before the deprecation completes.
Related portlet: Site Browser (com.dotcms.browser.BrowserPortlet)
Related: #37146 (push history PR), #37081 (push publish wiring this reuses), #37063, #37062, #33999 (parent epic)
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-]feat(content-drive): add History tab when editing folders[/-][+]feat(content-drive): add Push History tab when editing folders[/+][-]feat(content-drive): add Push History tab when editing folders[/-][+][TASK] Content Drive:: add Push History tab when editing folders[/+][-][TASK] Content Drive:: add Push History tab when editing folders[/-][+][TASK] Content Drive: add Push History tab when editing folders[/+]github-actions commentedon Jun 30, 2026
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.
4 remaining items
[-][TASK] Content Drive: folder push publish actions (push publish, add to bundle, push history)[/-][+][TASK] Content Drive: add Push publish actions to folders[/+][-][TASK] Content Drive: add Push publish actions to folders[/-][+][TASK] Content Drive: add Push publish actions and Delete to folders[/+][-][TASK] Content Drive: add Push publish actions and Delete to folders[/-][+][TASK] Content Drive: add Push publish actions and Delete to folders, and gate creation on permissions[/+]KevinDavilaDotCMS commentedon Sep 3, 2026
Passed QA
Tested in main
4a822032026-09-03.15-54-27.mov