Skip to content

Attempt to update payload to v3.52.0 - #450

Closed
rchlfryn wants to merge 5 commits into
mainfrom
update-payload
Closed

rchlfryn wants to merge 5 commits into
mainfrom
update-payload

Conversation

@rchlfryn

@rchlfryn rchlfryn commented Aug 25, 2025 •

Copy link
Copy Markdown
Collaborator

Note

See comment below why this is closed.

Description

Updates payload to 3.52.0. Takes advantage of such features as

  • Soft delete and groupBy in collections from (v3.49.0)
  • Migration for user_sessions in (v3.44.0)

Only updates plugin-multi-tenant to 3.49.0 to avoid a breaking change in 3.50.0

plugin-multi-tenant: constrain results to assigned tenants when present (payloadcms/payload#13365) (20b4de9)

Issue

Resolves #339 in v3.51.0

@github-actions

Copy link
Copy Markdown
Contributor

@busbyk busbyk left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I get this error when visiting the admin panel:
CleanShot 2025-08-25 at 17 19 25@2x

I was actually able to visit the admin panel initially and then once I clicked into a document and tried to edit a field I got this error. But now I can't access it at all even after deleting my .next folder and re-running pnpm dev.

I can recreate the same behavior in the preview environment by visiting any page document: https://update-payload.preview.avy-fx.org/admin/collections/pages/108

I'm assuming the behavior of the multi tenant plugin changed slightly as part of this upgrade. That function should be optional though: https://payloadcms.com/docs/plugins/multi-tenant#:~:text=userHasAccessToAllTenants%3F%3A,176

We don't use that because we determine the tenants a user has access to base on tenant scoped roles and we don't have a tenants relationship on the users collection like the multi tenant plugin expects. That's why we don't just use the multi tenant plugin directly.

Comment thread .github/workflows/dependabot.yml Resolved
baseListFilter: filterByTenant,
group: 'Content',
},
trash: true,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What happens to these files in Vercel Blob if they're soft deleted? Probably nothing?

Do we need to update any of our queries to respect the trash field? https://payloadcms.com/docs/trash/overview#:~:text=%7D)-,Return%20only%20non%2Dtrashed%20documents%3A,-1

Comment thread src/payload-types.ts
hash?: string | null;
loginAttempts?: number | null;
lockUntil?: string | null;
sessions?:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What is the effect of this on user sessions?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

From the release notes:

🚨 Notice 🚨

If your project uses the local auth strategy with db-postgres or db-sqlite, a migration is required. This is due to a new security feature (enabled by default) that stores a unique auth session identifier in the database.

To opt out and continue using the previous behavior, you can disable the feature by setting auth.useSessions: false in your users collection config.

https://github.com/payloadcms/payload/releases/tag/v3.45.0

Comment thread src/collections/Pages/index.ts Resolved
Comment thread src/collections/Pages/index.ts Resolved
@rchlfryn rchlfryn changed the title Update payload to v3.52.0 Update payload to v3.52.0 & plugin-multi-tenant to 3.49.0 Aug 29, 2025
@rchlfryn rchlfryn changed the title Update payload to v3.52.0 & plugin-multi-tenant to 3.49.0 Attempt to update payload to v3.52.0 Aug 29, 2025
@rchlfryn

Copy link
Copy Markdown
Collaborator Author

Closing because we need more time to figure this out.

We should file a payload issue

@rchlfryn rchlfryn closed this Aug 29, 2025
@rchlfryn
rchlfryn deleted the update-payload branch September 11, 2025 23:05

This branch had an error being deployed

1 failed deployment
Preview — ff5b4ee5 Deployed Aug 29, 2025 by rchlfryn
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.

Published At issues for pages and posts

2 participants