╭ changed ───────╮ │src/test/net.zig│ ╰────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │652 defer arena.deinit(); │ │653 const moment = try evt.currentMoment(.{}, &target); │ │654 const patch = (try evt.Patch.readById(evt.EventDB(.sha1), .sha1, moment, &arena, &fork_id)) orelse return error.NotFound;│ │655 - try evt.consume(.xit, .{}, io, allocator, &target, evt.events_ref, &.{.{ │ │655 + try evt.consume(.repo, .xit, .{}, io, allocator, &target, evt.events_ref, &.{.{ │ │656 .id = fork_id_hex, │ │657 .timestamp = 3, │ │658 .author = .{ .name = "admin", .email = "admin@example.test" }, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │736 { │ │737 var target = try rp.Repo(.xit, .{}).open(io, allocator, .{ .path = target_path }); │ │738 defer target.deinit(io, allocator); │ │739 - try evt.remove(.xit, .{}, io, allocator, &target, &fork_id, .patch, .{ .name = "admin", .email = "admin@example.test" }); │ │739 + try evt.remove(.repo, .xit, .{}, io, allocator, &target, &fork_id, .patch, .{ .name = "admin", .email = "admin@example.test" });│ │740 } │ │741 try client.push(io, allocator, "patch", "master:patch", false, .{ .wire = .{ .ssh = .{ .command = ssh_cmd } } }); │ │742 { │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │762 { │ │763 var admin = try rp.Repo(.xit, evt.admin_repo_opts).open(io, allocator, .{ .path = admin_path }); │ │764 defer admin.deinit(io, allocator); │ │765 - try evt.remove(.xit, evt.admin_repo_opts, io, allocator, &admin, &repo_id, .repo, .{ .name = "admin", .email = "admin@example.test" }); │ │765 + try evt.remove(.admin, .xit, evt.admin_repo_opts, io, allocator, &admin, &repo_id, .repo, .{ .name = "admin", .email = "admin@example.test" });│ │766 } │ │767 const clone_path = try std.fs.path.join(allocator, &.{ cwd_path, temp_dir_name, "fork-clone" }); │ │768 defer allocator.free(clone_path); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │781 { │ │782 var admin = try rp.Repo(.xit, evt.admin_repo_opts).open(io, allocator, .{ .path = admin_path });│ │783 defer admin.deinit(io, allocator); │ │784 - try evt.consume(.xit, evt.admin_repo_opts, io, allocator, &admin, evt.events_ref, &.{ │ │784 + try evt.consume(.admin, .xit, evt.admin_repo_opts, io, allocator, &admin, evt.events_ref, &.{ │ │785 .{ │ │786 .id = std.fmt.bytesToHex(repo_id, .lower), │ │787 .timestamp = 2, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │977 }; │ │978 │ │979 // commit the issue on the client and push it to the server │ │980 - try evt.consume(repo_kind, .{ .is_test = true }, io, allocator, &client_repo, evt.events_ref, &events_to_push); │ │980 + try evt.consume(.repo, repo_kind, .{ .is_test = true }, io, allocator, &client_repo, evt.events_ref, &events_to_push);│ │981 try client_repo.push( │ │982 io, │ │983 allocator, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1026 }; │ │1027 │ │1028 // commit the edit on the client and push it to the server │ │1029 - try evt.consume(repo_kind, .{ .is_test = true }, io, allocator, &client_repo, evt.events_ref, &events_to_push2); │ │1029 + try evt.consume(.repo, repo_kind, .{ .is_test = true }, io, allocator, &client_repo, evt.events_ref, &events_to_push2);│ │1030 try client_repo.push( │ │1031 io, │ │1032 allocator, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1713 var password_hash_buf: [evt.User.password_hash_max_len]u8 = undefined; │ │1714 const password_hash = try evt.User.hashPassword("password", &password_hash_buf, io); │ │1715 │ │1716 - try evt.consume(.xit, evt.admin_repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{.{ │ │1716 + try evt.consume(.admin, .xit, evt.admin_repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{.{│ │1717 .id = std.fmt.bytesToHex(user_id, .lower), │ │1718 .author = .{ .name = "admin", .email = "admin@example.test" }, │ │1719 .event = .{ .user = .{ │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯