Repository navigation
Conversation
jenslys
marked this pull request as ready for review
September 23, 2026 10:59
jenslys
requested review from
AlessioGr,
JarrodMFlesch and
jacobsfletch
as code owners
September 23, 2026 10:59
This was referenced Nov 9, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
map(async ...)path, which eagerly started every delete even whenbulkOperationsSingleTransactionwas enabledfetch()or response parsing fails instead of swallowing the exception and reporting the file as savedFixes #16333.
Related to #16075 and #16076.
Impact
The concurrent database path triggers
pg's deprecated nestedclient.query()behavior today. It can also silently lose localized writes or deletes;pg@9will reject it outright.The upload path currently swallows non-JSON edge responses such as an HTML
429, then removes the failed form and can report success. This change keeps the file in the failed set, shows an error, and exposes status/content-type context to an event listener.The file-preparation event is additive: with no listener, Payload uses the original files unchanged. A synchronous listener may assign
event.detail.preparationto aPromise<File[]>, which Payload awaits before creating forms.Why these changes share a PR
A downstream integration currently needs both
payloadand@payloadcms/uichanges in one immutable prerelease. Payload's internal packages use exact peer versions, so separate prereleases cannot be combined safely. The commits can be split if maintainers prefer once an internal build is available.Verification
pnpm --filter payload run buildpnpm --filter @payloadcms/ui run build:typesvitest run --project unit packages/ui/src/elements/BulkUpload/FormsManager/index.spec.ts— 3 passedpnpm run test:int:postgres test/database/int.spec.ts -t 'bulk operations in'— 4 passed3.xfails 3 of 4 cases: default bulk update/delete and bulk delete withbulkOperationsSingleTransactionenabledCould a maintainer publish an
internalprerelease from this PR so the downstream app can replace its Bun patches with one immutable package version?