╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │949 } │ │950 │ │951 // │ │952 - // a deletion on the other branch carries over, unless we edited the issue,│ │952 + // a removal on the other branch carries over, unless we edited the issue, │ │953 // in which case the edit wins │ │954 // │ │955 │ ╰────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │972 _ = try repo.commitAtRef(io, allocator, .{ .message = json.written() }, null, evt.events_ref); │ │973 } │ │974 │ │975 - // the other branch deletes both │ │975 + // the other branch removes both │ │976 { │ │977 json.clearRetainingCapacity(); │ │978 const event = evt.EventWithId{ .id = events_to_consume2[0].id, .author = author, .event = .{ .issue = null } };│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1000 │ │1001 const haxy_moment = try evt.currentMoment(repo_opts, &repo); │ │1002 │ │1003 - // the one we left alone is tombstoned, and its tags left the index │ │1003 + // the one we left alone is removed, and its tags left the index │ │1004 var dropped_id: [evt.event_id_size]u8 = undefined; │ │1005 _ = try std.fmt.hexToBytes(&dropped_id, &events_to_consume2[0].id); │ │1006 const dropped = try readIssue(Repo.DB, repo_opts.hash, haxy_moment, &arena, &dropped_id);│ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1007 - try std.testing.expect(dropped.deleted); │ │1007 + try std.testing.expect(dropped.removed); │ │1008 │ │1009 const tag_to_issues_cursor = try haxy_moment.getCursor(hash.hashInt(repo_opts.hash, "tag+status->issue-id-set")) orelse return error.NotFound;│ │1010 const tag_to_issues = try Repo.DB.SortedMap(.read_only).init(tag_to_issues_cursor); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │1014 var kept_id: [evt.event_id_size]u8 = undefined; │ │1015 _ = try std.fmt.hexToBytes(&kept_id, &events_to_consume2[1].id); │ │1016 const kept = try readIssue(Repo.DB, repo_opts.hash, haxy_moment, &arena, &kept_id);│ │1017 - try std.testing.expect(!kept.deleted); │ │1017 + try std.testing.expect(!kept.removed); │ │1018 try std.testing.expectEqualStrings("Kept by the edit", kept.event.title); │ │1019 } │ │1020 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1202 const repo_cursor = try event_id_to_repo.getCursor(hash.hashInt(repo_opts.hash, &repo_event_id)) orelse return error.NotFound; │ │1203 const repo_map = try Repo.DB.HashMap(.read_only).init(repo_cursor); │ │1204 const repo_event = try evt.read(evt.Repo.Record, Repo.DB, repo_opts.hash, &arena, repo_map); │ │1205 - try std.testing.expect(repo_event.deleted); │ │1205 + try std.testing.expect(repo_event.removed); │ │1206 │ │1207 // get the repos created by the user │ │1208 const user_id_to_repo_id_set_cursor = try haxy_moment.getCursor(hash.hashInt(repo_opts.hash, "user-id->repo-id-set")) orelse return error.NotFound;│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1229 const repo_cursor = try event_id_to_repo.getCursor(hash.hashInt(repo_opts.hash, &repo_event_id)) orelse return error.NotFound; │ │1230 const repo_map = try Repo.DB.HashMap(.read_only).init(repo_cursor); │ │1231 const repo_event = try evt.read(evt.Repo.Record, Repo.DB, repo_opts.hash, &arena, repo_map); │ │1232 - try std.testing.expect(!repo_event.deleted); │ │1232 + try std.testing.expect(!repo_event.removed); │ │1233 │ │1234 const user_id_to_repo_id_set_cursor = try haxy_moment.getCursor(hash.hashInt(repo_opts.hash, "user-id->repo-id-set")) orelse return error.NotFound;│ │1235 const user_id_to_repo_id_set = try Repo.DB.HashMap(.read_only).init(user_id_to_repo_id_set_cursor); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1263 const user_cursor = try event_id_to_user.getCursor(hash.hashInt(repo_opts.hash, &user_event_id)) orelse return error.NotFound; │ │1264 const user_map = try Repo.DB.HashMap(.read_only).init(user_cursor); │ │1265 const user_event = try evt.read(evt.User.Record, Repo.DB, repo_opts.hash, &arena, user_map); │ │1266 - try std.testing.expect(user_event.deleted); │ │1266 + try std.testing.expect(user_event.removed); │ │1267 │ │1268 - // deleting the user tombstones their active repos too │ │1268 + // removing the user removes their active repos too │ │1269 const event_id_to_repo_cursor = try haxy_moment.getCursor(hash.hashInt(repo_opts.hash, "event-id->repo")) orelse return error.NotFound;│ │1270 const event_id_to_repo = try Repo.DB.HashMap(.read_only).init(event_id_to_repo_cursor); │ │1271 const repo_cursor = try event_id_to_repo.getCursor(hash.hashInt(repo_opts.hash, &repo_event_id)) orelse return error.NotFound; │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1272 const repo_map = try Repo.DB.HashMap(.read_only).init(repo_cursor); │ │1273 const repo_event = try evt.read(evt.Repo.Record, Repo.DB, repo_opts.hash, &arena, repo_map);│ │1274 - try std.testing.expect(repo_event.deleted); │ │1274 + try std.testing.expect(repo_event.removed); │ │1275 } │ │1276 } │ │1277 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1353 try std.testing.expectEqual(1, try uset.count()); │ │1354 } │ │1355 │ │1356 - // deleting repo1 retains its place in the canonical order │ │1356 + // removing repo1 retains its place in the canonical order │ │1357 try evt.consume(.xit, repo_opts, io, allocator, &repo, evt.events_ref, &[_]evt.EventWithId{ │ │1358 .{ .id = std.fmt.bytesToHex(repo_ids[1], .lower), .author = author, .timestamp = 200, .event = .{ .repo = null } },│ │1359 }); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯