Repository navigation
Description
Description
The Workflow Center dialog (multi-item selection in Content Drive) currently offers a Quick Actions section containing Publish, Unpublish, Archive, Unarchive, Delete, Lock and Unlock. Five of those rows duplicate — and can silently contradict — the Workflow Actions section rendered directly below them.
A quick action fires POST /v1/workflow/actions/default/fire/{systemAction}, which resolves through the content type scheme's Default Actions mapping. If a scheme maps PUBLISH to something other than a plain publish, the quick-action row labelled "Publish" and the workflow row labelled "Publish" do different things. Two rows with the same label and different behaviour is worse than one row that resolves correctly.
This task narrows Quick Actions to the bulk operations the legacy content search offered outside its workflow dropdown, and wires the one that is missing: Push Publish.
Target state
| Row | State after this task |
|---|---|
| Lock | wired |
| Unlock | wired — keeps the "locked by another user" warning |
| Add to Bundle | wired — keeps the bundle-picker step |
| Push Publish | wired — gated on push publish environments |
| Refresh | disabled placeholder with a Work in progress badge (behaviour tracked by #36845) |
| removed — reachable through the Workflow Actions section, as the scheme's own actions |
Why Lock and Unlock stay: they are per-user state on the version info, not a workflow transition, so they have no scheme action to defer to. WorkflowAPI.SystemAction documents this — they carry no actionlet and mapping them has no effect.
Push Publish design notes
- Gate.
PushPublishService.getEnvironments()runs when the dialog opens. The row stays disabled with an explanatory tooltip until at least one environment answers. This is deliberately not the same state as Refresh's coming-soon badge: nothing is missing from dotCMS, something is missing from the configuration, and the fix belongs to an administrator. - Fails closed. An unresolved or failed lookup reads as "none" — offering a push with nowhere to go fails at the servlet with a message the user cannot act on.
- One deliberate difference from the JSP.
view_bulk_actions_inc.jspgates onsendingEndpoints(publishing endpoints existing). This gates on environments reachable by the user's role, which is the stricter question and the one the form itself needs: endpoints can exist with no environment this role can send to, and the picker would then open empty. - Form. Reuses
DotWorkflowPushPublishComponent— the same section the workflow-action path renders — so a push publish is collected identically in both dialogs. - Fire. New
PushPublishService.pushPublishAssetsposting toRemotePublishAjaxAction/cmd/publish, the same servlet the legacy search's Push Publish button hits. Kept separate from the existingpushPublishContentbecause of date handling, not count:DotPushPublishDatacarries whole dates that the service splits intoremotePublishDate/remotePublishTime, while the form emits them already split — recombining would lose the timezone the user picked. - Payload. Sends deduped identifiers, like Add to Bundle: a push sends the asset, so language versions of one contentlet are a single entry. The servlet splits
assetIdentifieron,, so bulk needs no new endpoint. - No per-contentlet precondition. The legacy
pushPublishSelectedContentlets()is justpushHandler.showDialog(getSelectedInodes())— the whole selection, unfiltered by live/archived/locked. The row therefore counts every selected contentlet. - The enterprise-license gate is deliberately not reproduced — that requirement no longer applies.
Acceptance Criteria
Quick Actions list
- Quick Actions contains exactly five rows: Lock, Unlock, Add to Bundle, Push Publish, Refresh
- Publish, Unpublish, Archive, Unarchive and Delete are absent from Quick Actions and remain reachable from the Workflow Actions section
- Lock, Unlock and Add to Bundle keep their existing behaviour, including the "locked by another user" warning and the bundle-picker step
- Refresh renders as a disabled row with a
Work in progressbadge and a tooltip; it counts the whole selection rather than showing0, and is disabled by its own flag rather than by its count
Push Publish — gate
- The Push Publish row is enabled when
PushPublishService.getEnvironments()returns at least one environment reachable by the user's role - With no reachable environment, the row is disabled and its tooltip names the missing configuration (distinct from Refresh's coming-soon wording)
- A failed or still-pending environment lookup is treated as "none" — the row stays disabled (fails closed)
Push Publish — form and execution
- Selecting the row opens the configure step rendering
DotWorkflowPushPublishComponent, the same form the workflow-action path uses - Continue is gated on form validity; the action cannot fire without collected settings
- Firing posts to
RemotePublishAjaxAction/cmd/publishwith deduped identifiers — one entry per contentlet identifier, not per language version — comma-joined inassetIdentifier - Publish date and time reach the servlet as the
remotePublishDate/remotePublishTimepair the form emits, with the user's chosen timezone preserved - Rows unchecked in the preview step are excluded from the fired payload
- A
200response without a numericerrorsvalue is routed to the error handler rather than reported as success (same guard Add to Bundle uses)
Cleanup
- Machinery whose only users were the removed rows is deleted: the
dangerflag and its two red-styling branches, the confirmation path (confirmMessage, theConfirmationServiceprovider/injection,ConfirmDialogModule,<p-confirmDialog>), andfireQuickAction - Doc comments no longer describe Publish or Delete as quick actions
-
content.drive.worflow.action.delete.confirmandcontent-drive.action-center.confirm.headerare retained inLanguage.propertieseven though they are orphaned repo-wide — removing i18n keys is a different risk profile, since customer overrides and plugins can reference them -
DotWorkflowPushPublishValuelives in@dotcms/dotcms-modelsso data-access can consume it without depending on@dotcms/ui, and is re-exported from@dotcms/uifor existing callers
i18n
-
content-drive.action-center.coming-soonandcontent-drive.action-center.no-environmentsare added - Push Publish and Refresh labels reuse the existing
Remote-PublishandRefreshkeys so every translation carries over; the badge reusescontent-drive.work-in-progress
Automated tests
- Unit coverage for the environments gate (available / none / lookup fails / still pending), the configure step, Continue gated on validity, the deduped-identifier payload, preview exclusions, refusal to fire without settings, the servlet body shape and its comma-joining, and the absence of the five removed actions
-
portlets-content-drive,data-accessanduisuites pass; lint andformat:checkare clean
Manual QA against a running instance
- An instance with no push publish environment for your role → Push Publish disabled, tooltip names the configuration
- After adding an environment → row enabled, form opens, and the push lands in the target environment
- A multi-language selection → one entry per identifier, not per language version
- Lock, Unlock and Add to Bundle behave unchanged throughout
Priority
Medium
Additional Context
Implementation: PR #37073.
Direction chosen. Two approaches to the duplicate rows were spiked. #37075 is the alternative: keep the five state actions in Quick Actions and gate each on the scheme's resolved workflow mapping. This ticket takes the removal path.
| This ticket (#37073) | Alternative (#37075) | |
|---|---|---|
| Publish / Unpublish / Archive / Unarchive / Delete | removed from Quick Actions | kept, gated on the workflow mapping |
| Reaching them | Workflow Actions section only | either, when mapped |
| Closes the raw-API bypass | yes, by removal | yes, by gating |
| New requests per dialog open | 1 (environments) | 1 per content type + 1 per scheme |
| Backend follow-up | none | optional: a resolved-mapping endpoint |
Why Refresh cannot be wired here. It is backed by _bulkrefresh, which streams progress over SSE and is not job-backed, so it cannot reuse the synchronous bulkFire path the other quick actions run on. Tracked by #36845.
Naming. The dialog is presented to users as Workflow Center; the code and i18n keys keep the action-center prefix.
Reference: dotCMS/src/main/webapp/html/portlet/ext/contentlet/view_bulk_actions_inc.jsp — the legacy implementation hitting the same endpoints.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
rjvelazco commentedon Aug 17, 2026
Note
Two spikes were opened to explore different directions for the Quick Actions section, and this ticket is the outcome of that comparison.
@nollymar decided to go with the first one (#37073) — that decision is why this ticket was created.
If you're picking this up
_bulkrefresh, which streams over SSE and cannot reuse the synchronousbulkFirepath the other quick actions run on.github-actions commentedon Aug 17, 2026
PRs linked to this issue
rjvelazco commentedon Aug 18, 2026
Two manual QA cases to add, both surfaced in review on #37081.
1. Legacy push publish dialog — multiple environments + non-default filter
Why: the encoding fix in #37081 changes
getPublishEnvironmentData's output, and that method's only caller is the dialog every legacy push in the product funnels through — content types, templates, containers, pages, rules.whoToSendmoved from a literalenv1,env2toenv1%2Cenv2.The container percent-decodes before
getParameterandRemotePublishAjaxActionsplits on,afterwards, so both forms should arrive identically. But this path has never been exercised, and it is the kind of thing that fails silently rather than loudly.2.
publishexpireunder-reports its countRemotePublishAjaxActioncreates one bundle for the publish half and a second for the expire half, and the secondresponseMapoverwrites the first (RemotePublishAjaxAction.java:258-275), so the counts describe the expire half alone.Not a regression —
PushPublishActionlet.doPushPublishsplits the same way, so the workflow path reports it identically. Documented onexecutePushPublish. Noting it so QA does not raise it as new, and so it is on record if we ever want to fix the servlet.KevinDavilaDotCMS commentedon Aug 21, 2026
Passed QA
Tested in main
4b469092026-08-21.15-08-58.mov