Repository navigation
test: cover orderable collections with branching - #19538
Open
DanRibbens wants to merge 3 commits into
Open
DanRibbens wants to merge 3 commits into
DanRibbens wants to merge 3 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 1
Please check the settings in the CodeRabbit UI or the
|
Contributor
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖
Largest pathsThese visualization shows top 20 largest paths in the bundle.Meta file: packages/next/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_shared.json, Out file: esbuild/exports/shared.js
Meta file: packages/richtext-lexical/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_shared.json, Out file: esbuild/exports/shared_optimized/index.js
DetailsNext to the size is how much the size has increased or decreased compared with the base branch of this PR.
|
DanRibbens
marked this pull request as ready for review
November 12, 2026 14:01
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.
Written with AI
Description
Add regression coverage for branch-local ordering in collection lists and orderable join fields. Reordering on a branch must leave main unchanged and preserve distinct order keys, list order, and exact per-document keys after merging. Cover both
versions: falseandversions: { drafts: true }collections.This is the next review layer after #19112 and targets
feat/content-branching-review/15-docs-and-translations.Prerequisite
Depends on #19539 being inherited by the branching stack. The
/reorderadjacent-document lookup currently omitsreq, so successive moves calculate keys using main's neighbors and assign duplicate keys on the branch. #19539 supplies the standalone fix against main; this PR contains only tests and fixtures.Without that prerequisite, the four original integration cases pass and all eight new successive-move regressions fail at the distinct-key assertion. The prerequisite has not been incorporated into this PR's base. The passing verification below used its one-line fix applied locally and removed before committing; it is not a passing claim for the published head alone.
Changes
Test Plan
Verified locally on SQLite:
PAYLOAD_DATABASE=sqlite pnpm run test:int test/branching/orderable.int.spec.ts --run— 4 passed, 8 failed at the distinct-key assertion.PORT=3017 PAYLOAD_DATABASE=sqlite pnpm run test:e2e branching --grep 'ordering after merging from the panel' --workers=1— 4 passed in Chromium.Other database adapters were not tested locally. Drafts-enabled cases use published documents and check published/draft reads; separate unpublished draft content is outside these cases.
Browser coverage uses pointer dragging. Keyboard, single-pointer alternatives to dragging, and assistive-technology behavior remain unverified for WCAG 2.2 criteria 2.1.1 (A), 2.5.7 (AA), and 4.1.2 (A).
Stack
Previous: #19112 — docs and translations.
Prerequisite fix against main: #19539.