fix: fork_parent_id NULL in self-referential mist fork
- In fork_mist(), set fork_row.fork_parent = source (relationship object) instead of fork_parent_id = source.mist_id (FK column). SQLAlchemy's self-referential adjacency-list handling inserts NULL for the FK column when only the column is set (fork_parent remains None), then never applies the post-update. Setting the relationship object directly lets SQLAlchemy resolve the persistent parent and write the correct FK in the INSERT statement. - Add synchronize_session=False on the bulk fork_count UPDATE to prevent the session from expiring fork_row after the bulk UPDATE. - Fixes TestSchemaForks, TestIntegrationForks, TestStressForks, TestSecurityForks, TestIntegrationForkList (5 pre-existing failures).
sha256:11ad3d64c4ecb6758a2fdcda6cae29e89e6be35ec7d47df60537cfbc0e7b1679
sha
sha256:1600d58d215b327795d2f616b1bfd0090495d833141a6bcb1ed007ee9f37a128
snapshot
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:11ad3d64c4ecb6758a2fdcda6cae29e89e6be35ec7d47df60537cfbc0e7b1679 --body "your comment"
No comments yet. Be the first to start the discussion.