╭ changed ───────────────╮ │src/test/event/admin.zig│ ╰────────────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │90 }; │ │91 │ │92 // commit and consume the seed events │ │93 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume); │ │93 + try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume);│ │94 │ │95 { │ │96 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │146 }; │ │147 │ │148 // commit and consume the removal │ │149 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2); │ │149 + try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume2);│ │150 │ │151 { │ │152 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │172 } │ │173 │ │174 // a non-null payload restores the repo and its indexes │ │175 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{.{ │ │175 + try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{.{│ │176 .id = std.fmt.bytesToHex(repo_event_id, .lower), │ │177 .author = author, │ │178 .event = events_to_consume[2].event, │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │207 }; │ │208 │ │209 // commit and consume the removal │ │210 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume3); │ │210 + try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events_to_consume3);│ │211 │ │212 { │ │213 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │297 .{ .id = std.fmt.bytesToHex(repo_ids[2], .lower), .author = author, .timestamp = 5_000, .event = .{ .repo = .{ .user_id = &user_id, .name = "repo2", .description = "d2" } } },│ │298 .{ .id = std.fmt.bytesToHex(repo_ids[3], .lower), .author = author, .timestamp = 20, .event = .{ .repo = .{ .user_id = &user_id, .name = "repo3", .description = "d3" } } }, │ │299 }; │ │300 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &events); │ │300 + try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &events); │ │301 │ │302 { │ │303 const moment = try evt.currentMoment(repo_opts, &repo); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │310 } │ │311 │ │312 // removing repo1 retains its place in the canonical order │ │313 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{ │ │313 + try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{ │ │314 .{ .id = std.fmt.bytesToHex(repo_ids[1], .lower), .author = author, .timestamp = 200, .event = .{ .repo = null } },│ │315 }); │ │316 { │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │319 } │ │320 │ │321 // update repo0 at a later timestamp -> keeps its original place │ │322 - try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{ │ │322 + try evt.consume(.admin, .xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{ │ │323 .{ .id = std.fmt.bytesToHex(repo_ids[0], .lower), .author = author, .timestamp = 300, .event = .{ .repo = .{ .user_id = &user_id, .name = "repo0", .description = "updated" } } },│ │324 }); │ │325 { │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │368 │ │369 var admin = try rp.Repo(.xit, evt.admin_repo_opts).init(io, allocator, .{ .path = admin_path });│ │370 defer admin.deinit(io, allocator); │ │371 - try evt.consume(.xit, evt.admin_repo_opts, io, allocator, &admin, evt.events_ref, &.{ │ │371 + try evt.consume(.admin, .xit, evt.admin_repo_opts, io, allocator, &admin, evt.events_ref, &.{ │ │372 .{ │ │373 .id = std.fmt.bytesToHex(user_id, .lower), │ │374 .timestamp = 1, │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────╯