Skip to content

Upgrade to Payload 2.11.2 #5

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

olivier5741
Copy link

Test are passing and it seems to work. I'm not a nodejs expert ...
Maybe you would want it to use an earlier version of PayloadCMS 2.x.x ?

@olivier5741
Copy link
Author

olivier5741 commented Mar 25, 2024

I inserted the content of the dist/ folder into a payload instance I'm configuring (2.11.2) and it's working.

@olivier5741
Copy link
Author

Does not seem to play well with nested docs plugin. There is a validation issue. The error goes away when I disable this plugin ...

[15:10:57] ERROR (payload): ValidationError: The following field is invalid: parent at beforeChange (/Users/olivier/Documents/src/payload-test/logica-cms-2/node_modules/payload/src/fields/hooks/beforeChange/index.ts:60:11) at processTicksAndRejections (node:internal/process/task_queues:95:5) at async updateByID (/Users/olivier/Documents/src/payload-test/logica-cms-2/node_modules/payload/src/collections/operations/updateByID.ts:234:18) at async updateByIDHandler (/Users/olivier/Documents/src/payload-test/logica-cms-2/node_modules/payload/src/collections/requestHandlers/updateByID.ts:36:17)

@olivier5741
Copy link
Author

Does not work with a relationship inside a row inside an array

@olivier5741
Copy link
Author

I also noticed that a nested query (to filter access to a document) didn't work when the foreign key was an ObjectId instead of a string ...

{ 'place.within.id': { equals: '65a6724b7...' } }

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