╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────╮ │← previous│ ╰──────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │504 const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │505 const first_issue = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), first_issue_map, .issue); │ │506 │ │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); │ │507 + try std.testing.expectEqualStrings(events_to_consume[0].data.?.issue.description, first_issue.issue.description); │ │508 + try std.testing.expectEqualStrings(events_to_consume[0].data.?.issue.tags, first_issue.issue.tags); │ │509 } │ │510 │ │511 // │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────╮ │515 const events_to_consume2 = [_]evt.Event{ │ │516 .{ │ │517 .id = std.fmt.bytesToHex(evt.randomId(prng.random()), .lower), │ │518 + .kind = .issue, │ │519 .data = .{ │ │520 .issue = .{ │ │521 .title = "Kanban card status badge falls behind after drag",│ ╰─────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────╮ │526 }, │ │527 .{ │ │528 .id = std.fmt.bytesToHex(evt.randomId(prng.random()), .lower), │ │529 + .kind = .issue, │ │530 .data = .{ │ │531 .issue = .{ │ │532 .title = "Assignee autocomplete omits recently invited users",│ ╰───────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────╮ │537 }, │ │538 .{ │ │539 .id = std.fmt.bytesToHex(evt.randomId(prng.random()), .lower), │ │540 + .kind = .issue, │ │541 .data = .{ │ │542 .issue = .{ │ │543 .title = "Add due date warning for issues blocked by dependencies",│ ╰────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │631 const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │632 const first_issue = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), first_issue_map, .issue); │ │633 │ │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); │ │634 + try std.testing.expectEqualStrings(events_to_consume[0].data.?.issue.description, first_issue.issue.description); │ │635 + try std.testing.expectEqualStrings(events_to_consume[0].data.?.issue.tags, first_issue.issue.tags); │ │636 } │ │637 │ │638 // make sure one of the new issues is there │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │644 const first_issue_map = try Repo.DB.HashMap(.read_only).init(first_issue_cursor); │ │645 const first_issue = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), first_issue_map, .issue); │ │646 │ │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); │ │647 + try std.testing.expectEqualStrings(events_to_consume2[0].data.?.issue.description, first_issue.issue.description); │ │648 + try std.testing.expectEqualStrings(events_to_consume2[0].data.?.issue.tags, first_issue.issue.tags); │ │649 } │ │650 } │ │651 │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │725 const events_to_consume3 = [_]evt.Event{ │ │726 .{ │ │727 .id = events_to_consume[0].id, │ │728 + .kind = .issue, │ │729 .data = .{ │ │730 .issue = .{ │ │731 .title = "Login form clears password on validation error",│ ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │736 }, │ │737 .{ │ │738 .id = events_to_consume[0].id, │ │739 + .kind = .issue, │ │740 .data = .{ │ │741 .issue = .{ │ │742 .title = "Login form clears password on validation error",│ ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────╮ │843 const events_to_consume = [_]evt.Event{ │ │844 .{ │ │845 .id = std.fmt.bytesToHex(user_event_id, .lower),│ │846 + .kind = .user, │ │847 .data = .{ │ │848 .user = .{ │ │849 .name = "Alice Example", │ ╰─────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────╮ │855 // this event edits the previous one because it has the same id│ │856 .{ │ │857 .id = std.fmt.bytesToHex(user_event_id, .lower), │ │858 + .kind = .user, │ │859 .data = .{ │ │860 .user = .{ │ │861 .name = "Alice Example", │ ╰────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯