Repository navigation
test(plugin-list): the inlineFlsNoop UNAUTHORED case waits for the object-schema headers, not the first render - #37981
Conversation
…ject-schema headers The case took the first non-empty header set, which on a slow runner is the inline-data render painted before the object schema loads (`Id` shown, `Amount` dropped by the inline-data FLS gate). It now waits until the headers equal the object-schema set before asserting the mechanism; a grid that stays on the inline-data path never reaches that set and reds the wait. Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwRxn1J7oT4Lx22UxZ
|
repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1 L1 ACCEPT at Against card #37972's acceptance.
Face. Deviation. The session ran at effort high against the claim's medium: accepted, it changes nothing in the diff. |
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Landing · 2026-11-27T14:33Z · zone
|
Requested by Tesla · project thread
Fixes #37972
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
ui/packages/plugin-list/src/__tests__/ListView.inlineFlsNoop-6723.test.tsx, the UNAUTHORED case only.The rows can paint before the object schema arrives. Until it does,
objectSchemais null, sogenerateColumns()answers from the row keys on the inline-data path (ui/packages/plugin-grid/src/objectGridGenerateColumns.tsx:783-784):Idshown,Amountdropped by the #6723 gate. The case took the first non-empty header set, so on a slow runner it read that render and failed withexpected [ 'Id', 'Opportunity Name' ] to not include 'Id'(PR #37948, jobs 140512339260 and 140529997984).The case now waits until the headers equal the object-schema set,
['Opportunity Name'], before it asserts. The three assertions after the wait (toContain('Opportunity Name'),not.toContain('Amount'),not.toContain('Id')) are unchanged. No other case changes; the CONTROL case'stoContain('Amount')stays as it is. No source file changes. The file is not published (test-only), soskip-changeset.Tests
All runs from
ui/:pnpm exec vitest run --maxWorkers=2 packages/plugin-list/src/__tests__/ListView.inlineFlsNoop-6723.test.tsx, underscripts/pm/os-verify-lock.sh, on headdb083480(baseorigin/main0b539b6).getObjectSchemadelayed 300 ms, OLD case (0b539b6)expected [ 'Id', 'Opportunity Name' ] to not include 'Id'at:171, the CI message exactlyrowKeysWouldOutrankSchemaPolicyforced tofalse(grid stays on the inline-data path), this headexpected [ 'Id', 'Opportunity Name' ] to deeply equal [ 'Opportunity Name' ]at:165(the new wait); the other two cases greenBoth mutations went through
scripts/ablation-replace.mjs(anchor hit 1 -> 0, blob moved, restored to the HEAD blob withgit diff HEADempty).@object-ui/plugin-gridresolves tosrcthrough theui/vitest.config.mtsalias, so the ablation needs no build.Acceptance notes
StudioRoute.metadataArea-28561.test.tsxredTest UI (13/16)once on PR fix(metadata-protocol): a 422 INVALID_METADATA issue entry carries its zod issue's params #37962. Different test, no change.Verification
Two-minute check: run the command above from
ui/; expectedTests 3 passed (3). To see the race the old case lost, delaygetObjectSchemain the file'smakeDataSource()by 300 ms: this head stays green.Generated by Claude Code