╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │975 // the other branch deletes both │ │976 { │ │977 json.clearRetainingCapacity(); │ │978 - const event = evt.EventWithId{ .id = events_to_consume2[0].id, .author_email = author_email, .event = .{ .issue = null } }; │ │978 + const event = evt.EventWithId{ .id = events_to_consume2[0].id, .author = author, .event = .{ .issue = null } }; │ │979 try std.json.Stringify.value(event, .{}, &json.writer); │ │980 _ = try repo.commitAtRef(io, allocator, .{ .parent_oids = &.{base_oid}, .message = json.written() }, null, other_events_ref);│ │981 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │982 { │ │983 json.clearRetainingCapacity(); │ │984 - const event = evt.EventWithId{ .id = events_to_consume2[1].id, .author_email = author_email, .event = .{ .issue = null } };│ │984 + const event = evt.EventWithId{ .id = events_to_consume2[1].id, .author = author, .event = .{ .issue = null } }; │ │985 try std.json.Stringify.value(event, .{}, &json.writer); │ │986 _ = try repo.commitAtRef(io, allocator, .{ .message = json.written() }, null, other_events_ref); │ │987 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │1099 const events_to_consume = [_]evt.EventWithId{ │ │1100 .{ │ │1101 .id = std.fmt.bytesToHex(user_event_id, .lower),│ │1102 - .author_email = author_email, │ │1102 + .author = author, │ │1103 .event = .{ │ │1104 .user = .{ │ │1105 .name = "alice", │ ╰──────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────╮ │1106 - .display_name = "Alice Example", │ │1106 .email = "alice@example.test", │ │1107 .password_hash = first_password_hash,│ │1108 }, │ ╰───────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────╮ │1111 // this event edits the previous one because it has the same id│ │1112 .{ │ │1113 .id = std.fmt.bytesToHex(user_event_id, .lower), │ │1115 - .author_email = author_email, │ │1114 + .author = author, │ │1115 .event = .{ │ │1116 .user = .{ │ │1117 .name = "alice", │ ╰─────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────╮ │1119 - .display_name = "Alice Example", │ │1118 .email = "alice@example.test", │ │1119 .password_hash = second_password_hash,│ │1120 }, │ ╰────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │1122 }, │ │1123 .{ │ │1124 .id = std.fmt.bytesToHex(repo_event_id, .lower),│ │1127 - .author_email = author_email, │ │1125 + .author = author, │ │1126 .event = .{ │ │1127 .repo = .{ │ │1128 .user_id = &user_event_id, │ ╰──────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │1184 const events_to_consume2 = [_]evt.EventWithId{ │ │1185 .{ │ │1186 .id = std.fmt.bytesToHex(repo_event_id, .lower),│ │1189 - .author_email = author_email, │ │1187 + .author = author, │ │1188 .event = .{ .repo = null }, │ │1189 }, │ │1190 }; │ ╰──────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1218 // a non-null payload restores the repo and its indexes │ │1219 try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{.{│ │1220 .id = std.fmt.bytesToHex(repo_event_id, .lower), │ │1223 - .author_email = author_email, │ │1221 + .author = author, │ │1222 .event = events_to_consume[2].event, │ │1223 }}); │ │1224 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────╮ │1245 const events_to_consume3 = [_]evt.EventWithId{ │ │1246 .{ │ │1247 .id = std.fmt.bytesToHex(user_event_id, .lower),│ │1250 - .author_email = author_email, │ │1248 + .author = author, │ │1249 .event = .{ .user = null }, │ │1250 }, │ │1251 }; │ ╰──────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯