╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │628 defer arena.deinit(); │ │629 const moment = try evt.currentMoment(repo_opts, &target); │ │630 const patch = (try evt.Patch.readById(evt.EventDB(hash_kind), hash_kind, moment, &arena, &fork_id)) orelse return error.NotFound;│ │631 - try evt.Patch.update(.xit, repo_opts, io, allocator, &target, &fork_id, .{ .fields = .{ │ │631 + try evt.Patch.update(.server, .xit, repo_opts, io, allocator, &target, &fork_id, .{ .fields = .{ │ │632 .title = "edited feature", │ │633 .description = patch.event.description, │ │634 .tags = patch.event.tags, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │715 { │ │716 var target = try rp.Repo(.xit, repo_opts).open(io, allocator, .{ .path = target_path }); │ │717 defer target.deinit(io, allocator); │ │718 - try evt.remove(.repo, .xit, repo_opts, io, allocator, &target, &fork_id, .patch, .{ .name = "admin", .email = "admin@example.test" }); │ │718 + try evt.remove(.server, .repo, .xit, repo_opts, io, allocator, &target, &fork_id, .patch, .{ .name = "admin", .email = "admin@example.test" });│ │719 } │ │720 try client.push(io, allocator, "patch-to-feature", "master:patch", false, .{ .wire = .{ .ssh = .{ .command = ssh_cmd } } }); │ │721 { │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │739 defer arena.deinit(); │ │740 const moment = try evt.currentMoment(repo_opts, &target); │ │741 const removed = (try evt.Patch.readById(evt.EventDB(hash_kind), hash_kind, moment, &arena, &fork_id)) orelse return error.NotFound;│ │742 - try evt.consume(.repo, .xit, repo_opts, io, allocator, &target, evt.events_ref, &.{.{ │ │742 + try evt.consume(.server, .repo, .xit, repo_opts, io, allocator, &target, evt.events_ref, &.{.{ │ │743 .id = fork_id_hex, │ │744 .timestamp = 4, │ │745 .author = .{ .name = "admin", .email = "admin@example.test" }, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │782 { │ │783 var admin = try rp.Repo(.xit, evt.admin_repo_opts).open(io, allocator, .{ .path = admin_path }); │ │784 defer admin.deinit(io, allocator); │ │785 - try evt.remove(.admin, .xit, evt.admin_repo_opts, io, allocator, &admin, &repo_id, .repo, .{ .name = "admin", .email = "admin@example.test" }); │ │785 + try evt.remove(.server, .admin, .xit, evt.admin_repo_opts, io, allocator, &admin, &repo_id, .repo, .{ .name = "admin", .email = "admin@example.test" });│ │786 } │ │787 const clone_path = try std.fs.path.join(allocator, &.{ temp_path, "fork-clone" }); │ │788 defer allocator.free(clone_path); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │801 { │ │802 var admin = try rp.Repo(.xit, evt.admin_repo_opts).open(io, allocator, .{ .path = admin_path }); │ │803 defer admin.deinit(io, allocator); │ │804 - try evt.consume(.admin, .xit, evt.admin_repo_opts, io, allocator, &admin, evt.events_ref, &.{ │ │804 + try evt.consume(.server, .admin, .xit, evt.admin_repo_opts, io, allocator, &admin, evt.events_ref, &.{│ │805 .{ │ │806 .id = std.fmt.bytesToHex(repo_id, .lower), │ │807 .timestamp = 2, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │978 }; │ │979 │ │980 // commit the issue on the client and push it to the server │ │981 - try evt.consume(.repo, repo_kind, .{ .hash = hash_kind, .is_test = true }, io, allocator, &client_repo, evt.events_ref, &events_to_push); │ │981 + try evt.consume(.local, .repo, repo_kind, .{ .hash = hash_kind, .is_test = true }, io, allocator, &client_repo, evt.events_ref, &events_to_push);│ │982 try client_repo.push( │ │983 io, │ │984 allocator, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1022 }; │ │1023 │ │1024 // commit the edit on the client and push it to the server │ │1025 - try evt.consume(.repo, repo_kind, .{ .hash = hash_kind, .is_test = true }, io, allocator, &client_repo, evt.events_ref, &events_to_push2); │ │1025 + try evt.consume(.local, .repo, repo_kind, .{ .hash = hash_kind, .is_test = true }, io, allocator, &client_repo, evt.events_ref, &events_to_push2);│ │1026 try client_repo.push( │ │1027 io, │ │1028 allocator, │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1621 var password_hash_buf: [evt.User.password_hash_max_len]u8 = undefined; │ │1622 const password_hash = try evt.User.hashPassword("password", &password_hash_buf, io); │ │1623 │ │1624 - try evt.consume(.admin, .xit, evt.admin_repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{.{ │ │1624 + try evt.consume(.server, .admin, .xit, evt.admin_repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{.{│ │1625 .id = std.fmt.bytesToHex(user_id, .lower), │ │1626 .author = .{ .name = "admin", .email = "admin@example.test" }, │ │1627 .event = .{ .user = .{ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯