╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │770 // │ │771 │ │772 { │ │773 - try evt.Issue.update(.xit, repo_opts, io, allocator, &repo, &issue_id, .{ .fields = .{ │ │773 + try evt.Issue.update(.local, .xit, repo_opts, io, allocator, &repo, &issue_id, .{ .fields = .{│ │774 .title = "Login form clears password on validation error", │ │775 .tags = "bug priority-medium ui", │ │776 .description = "Submitting an invalid email address resets the password field.", │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │809 try std.testing.expect(.success == merge.result); │ │810 } │ │811 │ │812 - try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │812 + try evt.consume(.local, .repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │813 │ │814 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │815 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │887 } │ │888 │ │889 { │ │890 - try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │890 + try evt.consume(.local, .repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │891 │ │892 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │893 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │972 try std.testing.expect(.success == merge.result); │ │973 } │ │974 │ │975 - try evt.consume(.repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{}); │ │975 + try evt.consume(.local, .repo, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &.{});│ │976 │ │977 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │978 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────────────╮ │src/test/event/admin.zig│ ╰────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │78 }; │ │79 │ │80 // commit and consume the seed events │ │81 - try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume); │ │81 + try evt.consume(.server, .admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume);│ │82 │ │83 { │ │84 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │134 }; │ │135 │ │136 // commit and consume the removal │ │137 - try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2); │ │137 + try evt.consume(.server, .admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2);│ │138 │ │139 { │ │140 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │160 } │ │161 │ │162 // a non-null payload restores the repo and its indexes │ │163 - try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{.{ │ │163 + try evt.consume(.server, .admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{.{│ │164 .id = std.fmt.bytesToHex(repo_event_id, .lower), │ │165 .author = author, │ │166 .event = events_to_consume[2].event, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │195 }; │ │196 │ │197 // commit and consume the removal │ │198 - try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume3); │ │198 + try evt.consume(.server, .admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume3);│ │199 │ │200 { │ │201 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │274 .{ .id = std.fmt.bytesToHex(repo_ids[2], .lower), .author = author, .timestamp = 5_000, .event = .{ .repo = .{ .user_id = &user_id, .name = "repo2", .description = "d2" } } },│ │275 .{ .id = std.fmt.bytesToHex(repo_ids[3], .lower), .author = author, .timestamp = 20, .event = .{ .repo = .{ .user_id = &user_id, .name = "repo3", .description = "d3" } } }, │ │276 }; │ │277 - try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events); │ │277 + try evt.consume(.server, .admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events); │ │278 │ │279 { │ │280 const moment = try evt.currentMoment(repo_opts, &repo); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │287 } │ │288 │ │289 // removing repo1 retains its place in the canonical order │ │290 - try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{ │ │290 + try evt.consume(.server, .admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{ │ │291 .{ .id = std.fmt.bytesToHex(repo_ids[1], .lower), .author = author, .timestamp = 200, .event = .{ .repo = null } },│ │292 }); │ │293 { │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯