Skip to content

Admin cube tester: adoptRawData A/B harness#881

Open
haynesjm42 wants to merge 1 commit into
grid-tester-data-factory-abfrom
store-adopt-raw-data
Open

Admin cube tester: adoptRawData A/B harness#881
haynesjm42 wants to merge 1 commit into
grid-tester-data-factory-abfrom
store-adopt-raw-data

Conversation

@haynesjm42

@haynesjm42 haynesjm42 commented Jul 24, 2026

Copy link
Copy Markdown
Member

Extends the Admin Cube test tab to exercise hoist-react's new Store.adoptRawData zero-copy mode (xh/hoist-react#4507, resolving xh/hoist-react#4506) alongside the legacy copy path.

Stacked on grid-tester-data-factory-ab - this PR targets that branch, not develop.

Changes

  • "Adopt Raw" toggle rebuilds the grid + connected View, reconstructing the Store in the selected mode for A/B comparison.
  • Complex-renderer contrast column - verifies both simple- and complex-renderer cells repaint under zero-copy ticks (the primary risk, since the shared row is mutated in place before the new record is built).
  • Order-replication multiplier to stress the Cube path at scale (e.g. 60k+ facts).
  • Editing gated off in the read-only adopt mode.
  • "Measure Mem" GC + heap readout, with an alert and flag guidance when Chrome lacks --js-flags=--expose-gc / --enable-precise-memory-info.

Used to produce the memory/performance A/B figures in the hoist-react PR.

Hoist P/R Checklist

  • Caught up with base branch as of last change. (Stacked on grid-tester-data-factory-ab.)
  • Added CHANGELOG entry, or determined not required. (Internal admin test harness - not required.)
  • Reviewed for breaking changes, added breaking-change label + CHANGELOG if so. (N/A - test harness only.)
  • Updated doc comments / prop-types, or determined not required. (N/A.)
  • Reviewed and tested on Mobile, or determined not required. (Desktop admin tester.)
  • Created Toolbox branch / PR, or determined not required. (This is the Toolbox PR; pairs with Store: opt-in adoptRawData zero-copy mode for connected Cube Views hoist-react#4507.)

Extends the Cube test tab to exercise hoist-react's new Store `adoptRawData` mode alongside the legacy copy path:

- "Adopt Raw" toggle rebuilds the grid + connected View, reconstructing the Store in the selected mode for A/B comparison.
- Complex-renderer contrast column (verifies simple + complex cells repaint under zero-copy ticks), order-replication multiplier for scale testing, editing gated off in the read-only mode.
- GC + heap "Measure Mem" readout, with an alert + flag guidance when Chrome lacks --expose-gc / --enable-precise-memory-info.
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