╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │47 const events_to_consume = [_]evt.Event{ │ │48 .{ │ │49 .id = std.fmt.bytesToHex(first_event_id, .lower), │ │50 + .kind = .issue, │ │51 .data = .{ │ │52 .issue = .{ │ │53 .title = "Login form clears password on validation error",│ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │59 // this event edits the previous one because it has the same id │ │60 .{ │ │61 .id = std.fmt.bytesToHex(first_event_id, .lower), │ │62 + .kind = .issue, │ │63 .data = .{ │ │64 .issue = .{ │ │65 .title = "Login form clears password on validation error",│ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────╮ │70 }, │ │71 .{ │ │72 .id = std.fmt.bytesToHex(evt.randomId(prng.random()), .lower), │ │73 + .kind = .issue, │ │74 .data = .{ │ │75 .issue = .{ │ │76 .title = "Search results ignore archived project filter",│ ╰─────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │81 }, │ │82 .{ │ │83 .id = std.fmt.bytesToHex(evt.randomId(prng.random()), .lower), │ │84 + .kind = .issue, │ │85 .data = .{ │ │86 .issue = .{ │ │87 .title = "Issue list does not persist selected sort order",│ ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │154 const first_issue = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), first_issue_map, .issue); │ │155 │ │156 // the description was correctly edited │ │153 - try std.testing.expectEqualStrings(events_to_consume[1].data.issue.?.description, first_issue.issue.?.description);│ │157 + try std.testing.expectEqualStrings(events_to_consume[1].data.?.issue.description, first_issue.issue.description); │ │158 │ │159 // the tags were correctly edited │ │156 - try std.testing.expectEqualStrings(events_to_consume[1].data.issue.?.tags, first_issue.issue.?.tags); │ │160 + try std.testing.expectEqualStrings(events_to_consume[1].data.?.issue.tags, first_issue.issue.tags); │ │161 } │ │162 │ │163 // │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │167 const events_to_consume2 = [_]evt.Event{ │ │168 .{ │ │169 .id = std.fmt.bytesToHex(evt.randomId(prng.random()), .lower), │ │170 + .kind = .issue, │ │171 .data = .{ │ │172 .issue = .{ │ │173 .title = "Double clicking causes the form to submit twice",│ ╰────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │291 const first_issue = try evt.EventData.read(Repo.DB, repo_opts.hash, arena.allocator(), first_issue_map, .issue); │ │292 │ │293 // the description is no longer edited │ │289 - try std.testing.expectEqualStrings(events_to_consume[0].data.issue.?.description, first_issue.issue.?.description); │ │294 + try std.testing.expectEqualStrings(events_to_consume[0].data.?.issue.description, first_issue.issue.description); │ │295 │ │296 // the tags are no longer edited │ │292 - try std.testing.expectEqualStrings(events_to_consume[0].data.issue.?.tags, first_issue.issue.?.tags); │ │297 + try std.testing.expectEqualStrings(events_to_consume[0].data.?.issue.tags, first_issue.issue.tags); │ │298 │ │299 // an event added by the second push is no longer there because it was wiped out by the rebase │ │300 try std.testing.expect(null == try event_id_to_issue.getCursor(hash.hashInt(repo_opts.hash, &events_to_consume2[0].id)));│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────╮ │408 const events_to_consume = [_]evt.Event{ │ │409 .{ │ │410 .id = std.fmt.bytesToHex(evt.randomId(prng.random()), .lower), │ │411 + .kind = .issue, │ │412 .data = .{ │ │413 .issue = .{ │ │414 .title = "Login form clears password on validation error",│ ╰───────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │419 }, │ │420 .{ │ │421 .id = std.fmt.bytesToHex(evt.randomId(prng.random()), .lower), │ │422 + .kind = .issue, │ │423 .data = .{ │ │424 .issue = .{ │ │425 .title = "Search results ignore archived project filter",│ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │430 }, │ │431 .{ │ │432 .id = std.fmt.bytesToHex(evt.randomId(prng.random()), .lower), │ │433 + .kind = .issue, │ │434 .data = .{ │ │435 .issue = .{ │ │436 .title = "Issue list does not persist selected sort order",│ ╰────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯