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

Created on 25 July 2023, over 1 year ago
Updated 8 March 2024, 11 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 4 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.71.5 2024