Skip to content

test(permissions): carry the root id column in the parity scratch table#876

Merged
flipvh merged 1 commit into
mainfrom
test/parity-root-id-column
Jul 12, 2026
Merged

test(permissions): carry the root id column in the parity scratch table#876
flipvh merged 1 commit into
mainfrom
test/parity-root-id-column

Conversation

@flipvh

@flipvh flipvh commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

The config-adaptive parity test (#866) claims to run on any fork config, but its scratch table lacked the root id column. Forks that configure elevatedRoles (#873) compile home-scoped grants against it (organization_id), so on any such fork the test threw at SQL compile time instead of verifying parity.

Fix: derive the root id column from entityIdColumnKeys exactly like the existing sub-context column, add it to the scratch table (NOT NULL) and to row seeding. On the template config the column is simply never referenced — behavior-identical.

Found by projectcampus (first elevatedRoles consumer); ported verbatim from its fork-side patch, which is already verified in its CI.

🤖 Generated with Claude Code

The config-adaptive parity test claims to run on any fork config, but its
scratch table lacked the root id column. Forks that configure elevatedRoles
compile home-scoped grants against it (organization_id), so on any such fork
the test threw instead of verifying parity. Derive the column from
entityIdColumnKeys like the sub-context column; on the template config it is
simply never referenced.

Found by projectcampus (first elevatedRoles consumer); fix ported verbatim
from its fork-side patch.

Co-Authored-By: Claude Fable 5 <[email protected]>
@flipvh flipvh merged commit 553bf90 into main Jul 12, 2026
9 checks passed
@flipvh flipvh deleted the test/parity-root-id-column branch July 12, 2026 08:34
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