Repository navigation
feat(sessions): import the old session runtime files into sessions.db - #1848
Merged
Merged
Conversation
igorjs
enabled auto-merge
November 15, 2026 07:48
igorjs
force-pushed
the
feat/issue-536-s5-import-of-old-files
branch
from
November 15, 2026 07:48
4744f50 to
a135275
Compare
Add a one-shot migration, sessions-runtime-files-to-db, that reads the old runtime/<sid>/ files (start-ts, last-clean-ts, clean-exit, activity.json) and writes one row per session in a single transaction, marked by the runtime_import meta row. It fills only null columns of an existing row, never creates the database when no folder qualifies, and reports a database error as a repeat so later migrations still run. Refs #536 Signed-off-by: igorjs <2278164+igorjs@users.noreply.github.com>
igorjs
force-pushed
the
feat/issue-536-s5-import-of-old-files
branch
from
November 15, 2026 07:52
a135275 to
804eb75
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
S5 of #536 (WU-5): a one-shot migration,
sessions-runtime-files-to-db, imports the oldruntime/<sid>/files intosessions.dbin one transaction marked by theruntime_importmeta row. It fills only null columns of an existing row, writes nothing and creates no database when no folder qualifies, and returns Repeat on a database error so later migrations run.Notes for reviewers
since: next, soplaybook migrateskips it until a release stamps it. The binary tests run the entry in process; the plan said through the binary.waiting_after_promptoverwrite, weak error assertions, missing cases, the clock parameter.Refs #536