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
23.11k stars 1.44k forks source link

Mongo collation enabled by default on v2.24.2 #7349

Closed BenBowers closed 1 month ago

BenBowers commented 1 month ago

Link to reproduction

No response

Payload Version

2.24.2

Node Version

20

Next.js Version

14.24

Describe the Bug

Deployed today to find that an update has been pushed to use collation by default. This is a issue as I am currently using a mongo db atlas instance that does not support collation features. Issue was solved by locking to a previous version. Would be nice to have a config option to enable/disable collation with the mongoose adapter

Reproduction Steps

Update to version 2.24.2, and try to connect to mongo database without collation support.

Adapters and Plugins

db-mongodb

ChristopherNowlan commented 1 month ago

Yeah I am having the same issue. The CMS is totally broken. @BenBowers I downgraded and got it working again. Below are my dependencies for a working CMS

"dependencies": { "@aws-sdk/client-s3": "^3.608.0", "@aws-sdk/lib-storage": "^3.608.0", "@payloadcms/bundler-webpack": "^1.0.7", "@payloadcms/db-mongodb": "1.5.2", "@payloadcms/plugin-cloud-storage": "^1.1.3", "@payloadcms/plugin-form-builder": "^1.2.2", "@payloadcms/plugin-nested-docs": "^1.0.12", "@payloadcms/plugin-seo": "^2.3.2", "@payloadcms/richtext-lexical": "^0.11.2", "@payloadcms/richtext-slate": "^1.5.2", "@react-email/container": "^0.0.12", "@react-email/head": "^0.0.9", "@react-email/html": "^0.0.8", "@react-email/img": "^0.0.8", "@react-email/link": "^0.0.8", "@react-email/render": "^0.0.16", "@react-email/section": "^0.0.12", "@react-email/text": "^0.0.8", "aws-crt": "^1.21.3", "cross-env": "^7.0.3", "dotenv": "^16.4.5", "express": "^4.19.2", "html-react-parser": "^5.1.10", "nodemailer-sendgrid": "^1.0.3", "payload": "2.23.1" },

jmikrut commented 1 month ago

@PatrikKozak can you look into this ASAP? Related to a PR you made recently I believe.

PatrikKozak commented 1 month ago

@BenBowers @ChristopherNowlan Thanks for bringing this to our attention!

We will be adding a new optional prop to the adapter config which will allow you to enable the collation feature by choice - will be disabled by default. PR for it is here - we will get this merged ASAP.

github-actions[bot] commented 19 hours ago

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