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 - Ensure Published Entries Are Fully Deleted #4265

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

adrians5j
Copy link
Member

@adrians5j adrians5j commented Sep 12, 2024

Changes

This PR resolves an issue where deleting a published revision of a content entry would not make the revision disappear when accessing data via Headless CMS's READ GraphQL API.

This was happening because of a mistake in the deletion process' code. In the code, upon trying to delete the "published" record from DDB -> ES table, we were mistakenly using primary DynamoDB table's entity object, instead of DDB -> ES's esEntity object.

How Has This Been Tested?

Added a Jest test.

Documentation

Changelog.

@adrians5j adrians5j added this to the 5.39.13 milestone Sep 12, 2024
@adrians5j adrians5j marked this pull request as ready for review September 12, 2024 12:25
@adrians5j adrians5j changed the title fix: use esEntity instead of entity Headless CMS - Delete "Published" Record when Deleting a Published Revision of a Content Entry Sep 12, 2024
@adrians5j adrians5j changed the title Headless CMS - Delete "Published" Record when Deleting a Published Revision of a Content Entry Headless CMS - Once Deleted, Ensure Published Entries Are Not Visible On the READ API Sep 12, 2024
@adrians5j adrians5j changed the title Headless CMS - Once Deleted, Ensure Published Entries Are Not Visible On the READ API Headless CMS - ensure Published Entries Are Not Visible On the READ API Sep 12, 2024
@adrians5j adrians5j changed the title Headless CMS - ensure Published Entries Are Not Visible On the READ API Headless CMS - Ensure Published Entries Are Fully Deleted Sep 12, 2024
@adrians5j adrians5j merged commit 0b68e13 into 5.39.13 Sep 12, 2024
83 of 84 checks passed
@adrians5j adrians5j deleted the fix/deletion-of-published-entries branch October 4, 2024 13:50
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.

1 participant