Skip to content

Workflow Center: trim Quick Actions to the old-search bulk operations and wire Push Publish #37080

Description

@rjvelazco

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)
Publish / Unpublish / Archive / Unarchive / Delete 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.jsp gates on sendingEndpoints (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.pushPublishAssets posting to RemotePublishAjaxAction/cmd/publish, the same servlet the legacy search's Push Publish button hits. Kept separate from the existing pushPublishContent because of date handling, not count: DotPushPublishData carries whole dates that the service splits into remotePublishDate / 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 assetIdentifier on ,, so bulk needs no new endpoint.
  • No per-contentlet precondition. The legacy pushPublishSelectedContentlets() is just pushHandler.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 progress badge and a tooltip; it counts the whole selection rather than showing 0, 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/publish with deduped identifiers — one entry per contentlet identifier, not per language version — comma-joined in assetIdentifier
  • Publish date and time reach the servlet as the remotePublishDate / remotePublishTime pair the form emits, with the user's chosen timezone preserved
  • Rows unchecked in the preview step are excluded from the fired payload
  • A 200 response without a numeric errors value 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 danger flag and its two red-styling branches, the confirmation path (confirmMessage, the ConfirmationService provider/injection, ConfirmDialogModule, <p-confirmDialog>), and fireQuickAction
  • Doc comments no longer describe Publish or Delete as quick actions
  • content.drive.worflow.action.delete.confirm and content-drive.action-center.confirm.header are retained in Language.properties even though they are orphaned repo-wide — removing i18n keys is a different risk profile, since customer overrides and plugins can reference them
  • DotWorkflowPushPublishValue lives in @dotcms/dotcms-models so data-access can consume it without depending on @dotcms/ui, and is re-exported from @dotcms/ui for existing callers

i18n

  • content-drive.action-center.coming-soon and content-drive.action-center.no-environments are added
  • Push Publish and Refresh labels reuse the existing Remote-Publish and Refresh keys so every translation carries over; the badge reuses content-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-access and ui suites pass; lint and format:check are 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.

Activity

  1. added theissue type on Aug 17, 2026
  2. self-assigned this
    on Aug 17, 2026
  3. moved this from New to In Progress in dotCMS - Product Planningon Aug 17, 2026
  4. rjvelazco commented on Aug 17, 2026

    @rjvelazco
    MemberAuthor

    Note

    Two spikes were opened to explore different directions for the Quick Actions section, and this ticket is the outcome of that comparison.

    Spike Direction
    #37073 Feature parity with the old Search. Quick Actions are limited to Lock, Unlock, Add to Bundle, Push Publish, and Refresh — the last one ships disabled.
    #37075 Uses the workflow default actions. There is a comment on that PR with a video walkthrough — worth watching before forming an opinion, since this direction could generate support tickets.

    @nollymar decided to go with the first one (#37073) — that decision is why this ticket was created.

    If you're picking this up

  5. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor
  6. rjvelazco commented on Aug 18, 2026

    @rjvelazco
    MemberAuthor

    Two manual QA cases to add, both surfaced in review on #37081.

    1. Legacy push publish dialog — multiple environments + non-default filter

    Push publish a single asset from the legacy dialog with two or more environments selected and a non-default filter, and confirm it arrives in every target.

    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. whoToSend moved from a literal env1,env2 to env1%2Cenv2.

    The container percent-decodes before getParameter and RemotePublishAjaxAction splits 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. publishexpire under-reports its count

    Push publish with Publish and Expire selected and confirm the toast count against what actually queued.

    RemotePublishAjaxAction creates one bundle for the publish half and a second for the expire half, and the second responseMap overwrites the first (RemotePublishAjaxAction.java:258-275), so the counts describe the expire half alone.

    Not a regression — PushPublishActionlet.doPushPublish splits the same way, so the workflow path reports it identically. Documented on executePushPublish. Noting it so QA does not raise it as new, and so it is on record if we ever want to fix the servlet.

  7. moved this from In Progress to QA in dotCMS - Product Planningon Aug 19, 2026
  8. removed their assignment
    on Aug 19, 2026
  9. KevinDavilaDotCMS commented on Aug 21, 2026

    @KevinDavilaDotCMS
    Contributor

    Passed QA

    Tested in main 4b46909

    2026-08-21.15-08-58.mov
  10. removed their assignment
    on Aug 21, 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