Disable preview button and post warning if content moderation isn't enabled.

Created on 3 May 2023, over 1 year ago
Updated 9 May 2023, over 1 year ago

Problem/Motivation

Content moderation is required for gatsby preview to work. If its not, clicking the preview button can cause problems related to https://www.drupal.org/project/gatsby/issues/3338967 πŸ› After upgrade, Open Preview throws db insert revision_id error Fixed .

Steps to reproduce

Setup gatsby preview for content type without a moderation workflow setting for that content type. Preview button can still be triggered and cause errors.

Proposed resolution

Check for moderation state, disable preview button and display warning if moderation is unavailable.

Remaining tasks

Patch incoming.

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States apmsooner

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

Comments & Activities

Production build 0.71.5 2024