Skip to content

fix(db-mongodb): strip deleted from the config blocks from the result #12869

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

Merged
merged 6 commits into from
Jun 27, 2025

Conversation

r1tsuu
Copy link
Member

@r1tsuu r1tsuu commented Jun 19, 2025

If you (using the MongoDB adapter) delete a block from the payload config, but still have some data with that block in the DB, you'd receive in the admin panel an error like:

Block with type "cta" was found in block data, but no block with that type is defined in the config for field with schema path pages.blocks

Now, we remove those "unknown" blocks at the DB adapter level.

DanRibbens
DanRibbens previously approved these changes Jun 24, 2025
@DanRibbens DanRibbens enabled auto-merge (squash) June 24, 2025 02:24
Copy link
Contributor

@DanRibbens DanRibbens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@r1tsuu
Copy link
Member Author

r1tsuu commented Jun 26, 2025

Looks like isn't, I did a rerun as well, looking into that

@r1tsuu r1tsuu requested a review from DanRibbens June 26, 2025 23:42
@DanRibbens DanRibbens merged commit 54afaf9 into main Jun 27, 2025
151 of 154 checks passed
@DanRibbens DanRibbens deleted the fix/ignore-blocks-deleted-from-the-config branch June 27, 2025 09:30
Copy link
Contributor

🚀 This is included in version v3.44.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants