╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │496 const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │497 const first_issue = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), first_issue_map, .issue); │ │498 │ │499 - try std.testing.expectEqualStrings(events_to_consume[0].data.issue.description, first_issue.issue.description); │ │500 - try std.testing.expectEqualStrings(events_to_consume[0].data.issue.tags, first_issue.issue.tags); │ │499 + try std.testing.expectEqualStrings(events_to_consume[0].data.issue.?.description, first_issue.issue.?.description);│ │500 + try std.testing.expectEqualStrings(events_to_consume[0].data.issue.?.tags, first_issue.issue.?.tags); │ │501 } │ │502 │ │503 // │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │620 const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │621 const first_issue = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), first_issue_map, .issue); │ │622 │ │623 - try std.testing.expectEqualStrings(events_to_consume[0].data.issue.description, first_issue.issue.description); │ │624 - try std.testing.expectEqualStrings(events_to_consume[0].data.issue.tags, first_issue.issue.tags); │ │623 + try std.testing.expectEqualStrings(events_to_consume[0].data.issue.?.description, first_issue.issue.?.description);│ │624 + try std.testing.expectEqualStrings(events_to_consume[0].data.issue.?.tags, first_issue.issue.?.tags); │ │625 } │ │626 │ │627 // make sure one of the new issues is there │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │633 const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │634 const first_issue = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), first_issue_map, .issue); │ │635 │ │636 - try std.testing.expectEqualStrings(events_to_consume2[0].data.issue.description, first_issue.issue.description); │ │637 - try std.testing.expectEqualStrings(events_to_consume2[0].data.issue.tags, first_issue.issue.tags); │ │636 + try std.testing.expectEqualStrings(events_to_consume2[0].data.issue.?.description, first_issue.issue.?.description);│ │637 + try std.testing.expectEqualStrings(events_to_consume2[0].data.issue.?.tags, first_issue.issue.?.tags); │ │638 } │ │639 } │ │640 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │918 const user = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), user_map, .user); │ │919 │ │920 // the password was correctly edited │ │921 - try std.testing.expectEqualStrings(events_to_consume[1].data.user.password_hash, user.user.password_hash); │ │921 + try std.testing.expectEqualStrings(events_to_consume[1].data.user.?.password_hash, user.user.?.password_hash); │ │922 │ │923 // get the map of repos │ │924 const event_id_to_repo_cursor = try haxy_moment.getCursor(hash.hashInt(repo_opts.hash, "event-id->repo")) orelse return error.NotFound;│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │929 const repo_map = try Repo.DB.HashMap(.read_only).init(repo_cursor); │ │930 const repo_event = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), repo_map, .repo); │ │931 │ │932 - try std.testing.expectEqualSlices(u8, &user_event_id, repo_event.repo.user_id); │ │933 - try std.testing.expectEqualStrings("ziglings", repo_event.repo.name); │ │932 + try std.testing.expectEqualSlices(u8, &user_event_id, repo_event.repo.?.user_id); │ │933 + try std.testing.expectEqualStrings("ziglings", repo_event.repo.?.name); │ │934 │ │935 // get the repos created by the user │ │936 const user_id_to_repos_cursor = try haxy_moment.getCursor(hash.hashInt(repo_opts.hash, "user-id->repos")) orelse return error.NotFound;│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────╮ │952 .{ │ │953 .id = std.fmt.bytesToHex(repo_event_id, .lower),│ │954 .data = .{ │ │955 - .remove = .{ │ │956 - .event_kind = .repo, │ │957 - }, │ │955 + .repo = null, │ │956 }, │ │957 }, │ │958 }; │ ╰─────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │1025 .{ │ │1026 .id = std.fmt.bytesToHex(user_event_id, .lower),│ │1027 .data = .{ │ │1030 - .remove = .{ │ │1031 - .event_kind = .user, │ │1032 - }, │ │1028 + .user = null, │ │1029 }, │ │1030 }, │ │1031 }; │ ╰──────────────────────────────────────────────────────────────────╯