Skip to content

[TASK] Content Drive: add Push publish actions and Delete to folders, and gate creation on permissions #35161

Description

@zJaaal

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/_delete already 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:

  1. Folder context menu (right-click, in the grid and the sidebar tree, since getMenuItems() serves both)
  2. 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 PUBLISH on 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 actionExecution guard

Delete

  • A Delete Folder item appears in the folder context menu, gated on EDIT and EDIT_PERMISSIONS — FolderAPIImpl.delete enforces both, at :438 and :456, so gating on EDIT alone 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_CHILDREN on the browsed folder. All three create something in it, and the server enforces that permission (FolderAPIImpl:673-676 for a folder, ESContentletAPIImpl:605-609 for 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_CHILDREN with the tree; the root's parent is the host, and nothing reported on it. Needs canAddChildren on GET /api/v1/permissions/{assetId}, beside the canEditPermissions and canEdit that 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

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)

Activity

  1. changed the title [-]feat(content-drive): add History tab when editing folders[/-] [+]feat(content-drive): add Push History tab when editing folders[/+] on Mar 31, 2026
  2. changed the title [-]feat(content-drive): add Push History tab when editing folders[/-] [+][TASK] Content Drive:: add Push History tab when editing folders[/+] on Mar 31, 2026
  3. moved this from New to Next 2-4 Sprints in dotCMS - Product Planningon Mar 31, 2026
  4. added theissue type on Mar 31, 2026
  5. changed the title [-][TASK] Content Drive:: add Push History tab when editing folders[/-] [+][TASK] Content Drive: add Push History tab when editing folders[/+] on Mar 31, 2026
  6. github-actions commented on Jun 30, 2026

    @github-actions
    Contributor

    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.

  7. moved this from Next 2-4 Sprints to Current Sprint Backlog in dotCMS - Product Planningon Jul 29, 2026
  8. 4 remaining items

  9. changed the title [-][TASK] Content Drive: folder push publish actions (push publish, add to bundle, push history)[/-] [+][TASK] Content Drive: add Push publish actions to folders[/+] on Aug 20, 2026
  10. moved this from Current Sprint Backlog to In Progress in dotCMS - Product Planningon Aug 20, 2026
  11. changed the title [-][TASK] Content Drive: add Push publish actions to folders[/-] [+][TASK] Content Drive: add Push publish actions and Delete to folders[/+] on Aug 20, 2026
  12. changed the title [-][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[/+] on Aug 24, 2026
  13. removed their assignment
    on Aug 26, 2026
  14. moved this from In Progress to QA in dotCMS - Product Planningon Aug 26, 2026
  15. KevinDavilaDotCMS commented on Sep 3, 2026

    @KevinDavilaDotCMS
    Contributor

    Passed QA

    Tested in main 4a82203

    2026-09-03.15-54-27.mov
  16. removed their assignment
    on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions