mirror of
https://github.com/block/buzz.git
synced 2026-11-09 10:51:42 +00:00
feat(relay): record when a read-state account starts (#8157)
## Goal Add `started_at` to read-state accounts from the day the table is created. This prevents users seeing ALL their channels as unread when they first install a client update that starts using these APIs --------- Signed-off-by: hMB2 <0400eb0da32afbbf16cdd1dee6ffd243587e8f3d6a2823fe7dfa95d16b002b7d@buzz.block.builderlab.xyz> Signed-off-by: ART <ea39c1c8acf57180161ef4ba4ed68abf8589f5291956b909a5aa991fc66664ca@buzz.block.builderlab.xyz> Signed-off-by: hMurderbot <219c58afff8ac2c76e4e527a329aa61c2ebbb896786b1916d4f9cca5140ecd04@buzz.block.builderlab.xyz> Co-authored-by: hMB2 <0400eb0da32afbbf16cdd1dee6ffd243587e8f3d6a2823fe7dfa95d16b002b7d@buzz.block.builderlab.xyz> Co-authored-by: hMurderbot <219c58afff8ac2c76e4e527a329aa61c2ebbb896786b1916d4f9cca5140ecd04@buzz.block.builderlab.xyz> Co-authored-by: ART <ea39c1c8acf57180161ef4ba4ed68abf8589f5291956b909a5aa991fc66664ca@buzz.block.builderlab.xyz> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -311,7 +311,16 @@ async fn migration_schema_thread_window_prebuild_does_not_queue_behind_writer()
|
||||
production_result.is_ok(),
|
||||
"production migrator must preserve ingestion progress: {production_result:?}"
|
||||
);
|
||||
assert_eq!(version, 56);
|
||||
let latest = sqlx::migrate::Migrator::new(
|
||||
std::path::Path::new(env!("CARGO_MANIFEST_DIR")).join("../../migrations"),
|
||||
)
|
||||
.await
|
||||
.unwrap()
|
||||
.iter()
|
||||
.map(|m| m.version)
|
||||
.max()
|
||||
.unwrap();
|
||||
assert_eq!(version, latest);
|
||||
assert_eq!(final_oid, oid, "prebuild must not be replaced");
|
||||
assert_eq!(count, 4, "all writer witnesses must persist");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user