huskies: merge 729_story_store_story_name_as_a_crdt_field_separate_from_the_story_id

This commit is contained in:
dave
2026-04-27 19:03:21 +00:00
parent 4aadf4aa47
commit 26f9f3f7fc
5 changed files with 219 additions and 3 deletions
+4
View File
@@ -267,6 +267,10 @@ async fn main() -> Result<(), std::io::Error> {
}
if let Err(e) = crdt_state::init(db_path).await {
slog!("[crdt] Failed to initialise CRDT state layer: {e}");
} else {
// Migrate items that have an empty name field: derive the name
// from the story ID slug. No-op for items that already have a name.
crdt_state::migrate_names_from_slugs();
}
}