Paragraph revisions show up in production in some instances

Created on 19 December 2022, about 2 years ago
Updated 16 February 2023, almost 2 years ago

Problem/Motivation

Recent updates to support paragraph entity revision preview support introduced a regression where these revisions can show up in production builds when the setting "Only trigger builds for published content" is unchecked.

Steps to reproduce

Uncheck the "Only trigger builds for published content" setting. Preview a draft version of a node with paragraphs attached and notice a build is triggered to live site with the paragraph revision. This should only be updated on the preview server.

Proposed resolution

Pass type to buildRelationshipJson function so that only the paragraph draft version is loaded when type == preview.

Remaining tasks

Create a patch that modifies the logic and test.

πŸ› Bug report
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

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