Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headless CMS / createRevisionFrom - Ensure Published Records Are Updated Accordingly #4180

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

adrians5j
Copy link
Member

@adrians5j adrians5j commented Jun 26, 2024

Changes

Prior to this PR, if a user would be using the createRevisionFrom method (directly or via GraphQL API), and also set the initial status of the revision to published, then, subsequently trying to read the entry via the READ GraphQL API would still return the old published version.

This was happening because, upon creating+publishing the new entry revision, the storage operations code would not take the status into account, and do required updates on the "published" record for the CMS entry in question.

With this PR, this issue has been fixed.

How Has This Been Tested?

Jest.

Documentation

Changelog.

@adrians5j adrians5j added this to the 5.40.1 milestone Jun 26, 2024
@adrians5j adrians5j merged commit 251da99 into dev Jun 27, 2024
92 checks passed
@adrians5j adrians5j deleted the adrian/create-revision-from-publish-issue branch July 5, 2024 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants