You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f779531
Browse filesBrowse the repository at this point in the historyBrowse files
fix(metadata): a bundled type's save writes its own member's row, and loadMany keeps a column-bound package (R4-A, R4-B)
DatabaseLoader.save of a bundled type stored per (package, name) wrote
into the slot's first row whatever its member, and on this branch the
boot priming pass (MetadataManager.loadMany, then register each) reached
it: a two-member slot's en-US row was replaced by fr-FR's body at every
boot. The save now targets the row of the member the body declares and
inserts a member with no row, naming its bundle_member; an unbundled
slotted type keeps one row per slot. MetadataManager.loadMany reads a
bundled type through the loader's keyed entries, so a row bound to its
package by the package_id column alone keeps that package, and hands the
body on stamped with it; a save of a body that differs from its row only
by that stamp writes nothing (epic ruling 6799056319).
Claude-Session: https://claude.ai/code/session_01QSeKYm8sWjp2Pk76warN7w
Co-authored-by: Claude <noreply@anthropic.com>
it(`the priming pass leaves a two-member slot's rows unchanged (bodies ${stamped ? 'stamped' : 'bound by the column only'}; BEFORE: en-US overwritten by fr-FR)`,async()=>{
1854
+
awaitseed(ALPHA,'en-US',1,stamped);
1855
+
awaitseed(ALPHA,'fr-FR',2,stamped);
1856
+
constbefore=awaitstored();
1857
+
awaitprime(manager());
1858
+
expect(awaitstored()).toEqual(before);
1859
+
expect(driver.update).not.toHaveBeenCalled();
1860
+
expect(driver.create).toHaveBeenCalledTimes(2);
1861
+
});
1862
+
}
1863
+
1864
+
it('R4-B: rows bound by the column only — `loadMany` keeps two packages\' same member apart, and the priming pass writes nothing (BEFORE: alpha\'s two only, and a package-less row inserted)',async()=>{
it('a direct save of fr-FR into a slot holding en-US inserts the fr-FR row; the en-US row is untouched; a second fr-FR save updates its own row (BEFORE: the en-US row overwritten)',async()=>{
0 commit comments