╭──────────╮ │← previous│ ╰──────────╯ ╭ changed ─────────╮ │src/event/User.zig│ ╰──────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────╮ │117 - // the id set retains tombstones so merges can carry deletions │ │117 + // the id set retains removed records so merges can carry removals │ │118 if (existing_cursor_maybe == null) { │ │119 const user_id_set_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, id_set_key));│ │120 const user_id_set = try DB.SortedSet(.read_write).init(user_id_set_cursor); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │121 try user_id_set.put(&order_key); │ │122 } │ │123 │ │124 - if (!record_to_write.deleted) { │ │124 + if (!record_to_write.removed) { │ │125 try name_to_user_id.put(hash.hashInt(hash_kind, record_to_write.event.name), .{ .bytes = event_id }); │ │126 try email_to_user_id.put(hash.hashInt(hash_kind, record_to_write.event.email), .{ .bytes = event_id });│ │127 } │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │128 │ │129 - const became_deleted = record_to_write.deleted and if (existing_record_maybe) |existing| !existing.deleted else true;│ │130 - if (became_deleted) { │ │129 + const became_removed = record_to_write.removed and if (existing_record_maybe) |existing| !existing.removed else true;│ │130 + if (became_removed) { │ │131 // the user's repos go with them: the repo name index is keyed by owner │ │132 // id, so one left behind is listed but can never be resolved again │ │133 const user_id_to_repo_id_set_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "user-id->repo-id-set"));│ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────╮ │135 if (try user_id_to_repo_id_set.getCursor(user_key)) |user_repos_cursor| { │ │136 const user_repos = try DB.SortedSet(.read_only).init(user_repos_cursor);│ │137 │ │138 - // collected up front, since deleting a repo removes it from this set │ │138 + // collected up front, since removing a repo removes it from this set │ │139 var repo_ids: std.ArrayList([evt.event_id_size]u8) = .empty; │ │140 var repo_iter = try user_repos.iteratorFromIndex(0); │ │141 while (try repo_iter.next()) |kv_pair_cursor| { │ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ────────╮ │src/main_wasm.zig│ ╰─────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ 98 // gets focus and Enter falls through to the wasm. │ │ 99 switch (child.focus.kind) { │ │100 .text_input, .text_input_password, .text_area => _focusInput(@intCast(gid)), │ │101 - .custom => |custom| if (std.mem.eql(u8, custom, "submit") or std.mem.startsWith(u8, custom, ui.file_input_prefix)) _focusInput(@intCast(gid)), │ │101 + .custom => |custom| if (std.mem.eql(u8, custom, "submit") or std.mem.startsWith(u8, custom, ui.submit_action_prefix) or std.mem.startsWith(u8, custom, ui.file_input_prefix)) _focusInput(@intCast(gid)),│ │102 else => {}, │ │103 } │ │104 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────╮ │src/test/event.zig│ ╰──────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────╮ │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 } │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯