payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
25.74k stars 1.64k forks source link

@payloadcms/db-postgres Cannot Remove Blocks #3918

Closed steveninety closed 1 year ago

steveninety commented 1 year ago

Link to reproduction

-

Describe the Bug

Inside a collecrion, removing a block and then saving the document, brings back the block. The Patch request's payload excludes the to-be-deleted block, as should be, but the response includes it once again. No errors in the terminal or console.

This happens to all my blocks (not specifically nested like #3635).

To Reproduce

P.s. I'm a noob and couldn't follow along with the reproduction guide (e.g. how do I reproduce using specific package versions, where do I add env variables...)

Payload Version

2.0.13

Adapters and Plugins

"@payloadcms/bundler-vite": "^0.1.3", "@payloadcms/db-postgres": "^0.1.10", "@payloadcms/plugin-form-builder": "^1.0.15", "@payloadcms/plugin-nested-docs": "^1.0.8", "@payloadcms/richtext-lexical": "^0.1.15",

dardanbujupaj commented 1 year ago

Encountered the same issue.

Some more details: It only happens with the postgres adapter, deleting blocks with mongodb works fine. It can be reproduced, by setting up the website-template with npx create-payload-app.

ghost commented 1 year ago

@JarrodMFlesch I'm still having this issue after updating to 2.0.15, I can add blocks but not remove them.

dardanbujupaj commented 1 year ago

@ficeco did you update @payloadcms/db-postgres to 0.1.12 as well?

JarrodMFlesch commented 1 year ago

@ficeco can you update the @payloadcms/db-postgres adapter and try again?

ghost commented 1 year ago

@JarrodMFlesch That did the trick, thank you!

github-actions[bot] commented 2 months ago

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.