When publishing a workspace with unpublished content, a cryptic error message appears

Created on 25 July 2023, 11 months ago
Updated 8 March 2024, 4 months ago

Problem/Motivation

If I attempt to publish a workspace that contains new unpublished/non-default revisions (e.g. new forward drafts) then I get a cryptic error message:

The Stage workspace can not be published because it contains 1 item in an unpublished moderation state.

This is super cryptic, mostly because I have no easy way to know which of my changes are unpublished.

Proposed resolution

Change /admin/config/workflow/workspaces/manage/stage

1. Add a new column for "Status"
2. If an item is unpublished, also show a ⚠️ icon
3. At the bottom of the page show a message: "⚠️ This workspace cannot be published until all unpublished items are published."

This code is in \Drupal\workspaces\WorkspaceViewBuilder::buildComponents()

Remaining tasks

All.

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
WorkspacesΒ  β†’

Last updated 15 days ago

No maintainer
Created by

πŸ‡¨πŸ‡¦Canada dalin Guelph, πŸ‡¨πŸ‡¦, 🌍

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024