╭ changed ────╮ │src/event.zig│ ╰─────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1198 parent_moment: DB.HashMap(.read_only), │ │1199 baseline_moment: DB.HashMap(.read_only), │ │1200 ) !void { │ │1201 - const parent_set_cursor = try parent_moment.getCursor(hash.hashInt(hash_kind, T.id_set_key)) orelse return; │ │1201 + const parent_set_cursor = try parent_moment.getCursor(hash.hashInt(hash_kind, T.all_id_set_key)) orelse return; │ │1202 const parent_set = try DB.SortedSet(.read_only).init(parent_set_cursor); │ │1203 │ │1204 const parent_records_cursor = try parent_moment.getCursor(hash.hashInt(hash_kind, T.record_map_key)) orelse return;│ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────────────╮ │src/event/Attachment.zig│ ╰────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────╮ │24 // the moment keys `evt.merge` reads and writes for this kind │ │25 pub const merge_policy: evt.MergePolicy = .target_wins; │ │26 pub const record_map_key = "event-id->attachment"; │ │27 -pub const id_set_key = "attachment-id-set"; │ │27 +pub const all_id_set_key = "attachment-id-set"; │ │28 │ │29 // the index a parent event's view reads │ │30 pub const parent_id_to_attachment_id_set_key = "parent-id->attachment-id-set";│ ╰──────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │101 try evt.indexEvent(DB, hash_kind, haxy_moment, event_id, .attach, existing_record_maybe, record_to_write);│ │102 │ │103 if (existing_cursor_maybe == null) { │ │104 - const attachment_id_set_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, id_set_key)); │ │104 + const attachment_id_set_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, all_id_set_key)); │ │105 const attachment_id_set = try DB.SortedSet(.read_write).init(attachment_id_set_cursor); │ │106 try attachment_id_set.put(&evt.orderKeyDesc(record_to_write.created_order, event_id)); │ │107 } │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ────────────╮ │src/event/Comment.zig│ ╰─────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────╮ │22 // the moment keys `evt.merge` reads and writes for this kind │ │23 pub const merge_policy: evt.MergePolicy = .target_wins; │ │24 pub const record_map_key = "event-id->comment"; │ │25 -pub const id_set_key = "comment-id-set"; │ │25 +pub const all_id_set_key = "comment-id-set"; │ │26 │ │27 // the indexes the thread reads │ │28 pub const thread_id_to_comment_id_set_key = "thread-id->comment-id-set";│ ╰────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │80 try evt.indexEvent(DB, hash_kind, haxy_moment, event_id, .comment, existing_record_maybe, record_to_write);│ │81 │ │82 if (existing_cursor_maybe == null) { │ │83 - const comment_id_set_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, id_set_key)); │ │83 + const comment_id_set_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, all_id_set_key)); │ │84 const comment_id_set = try DB.SortedSet(.read_write).init(comment_id_set_cursor); │ │85 try comment_id_set.put(&evt.orderKeyDesc(record_to_write.created_order, event_id)); │ │86 try evt.touchThread(DB, hash_kind, haxy_moment, &thread_id, record_to_write.created_order, arena); │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ───────────────╮ │src/event/Discussion.zig│ ╰────────────────────────╯ ╭───────────────────────────────────────────────────────────────╮ │22 │ │23 pub const merge_policy: evt.MergePolicy = .target_wins; │ │24 pub const record_map_key = "event-id->discussion"; │ │25 -pub const id_set_key = "discussion-id-set"; │ │25 +pub const all_id_set_key = "discussion-id-set"; │ │26 pub const active_id_set_key = "active-discussion-id-set"; │ │27 pub const tag_to_id_set_key = "tag->discussion-id-set"; │ │28 const activity_order_key = "discussion-id->activity-order";│ ╰───────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │86 if (existing_cursor_maybe == null) { │ │87 const activity = try DB.HashMap(.read_write).init(try haxy_moment.putCursor(hash.hashInt(hash_kind, activity_order_key)));│ │88 try activity.put(discussion_key, .{ .uint = activity_order }); │ │89 - const ids = try DB.SortedSet(.read_write).init(try haxy_moment.putCursor(hash.hashInt(hash_kind, id_set_key))); │ │89 + const ids = try DB.SortedSet(.read_write).init(try haxy_moment.putCursor(hash.hashInt(hash_kind, all_id_set_key))); │ │90 try ids.put(&evt.orderKeyDesc(record_to_write.created_order, event_id)); │ │91 } │ │92 │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ─────────╮ │src/event/Fork.zig│ ╰──────────────────╯ ╭────────────────────────────────────────────────────────────────────────╮ │24 │ │25 pub const merge_policy: evt.MergePolicy = .target_wins; │ │26 pub const record_map_key = "event-id->fork"; │ │27 -pub const id_set_key = "fork-id-set"; │ │27 +pub const all_id_set_key = "fork-id-set"; │ │28 pub const user_id_to_fork_id_set_key = "user-id->fork-id-set"; │ │29 pub const repo_user_to_draft_id_set_key = "repo+user->draft-id-set";│ │30 pub const DraftKey = [evt.event_id_size * 2]u8; │ ╰────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │86 │ │87 const order_key = evt.orderKeyDesc(record.created_order, event_id); │ │88 if (existing_cursor_maybe == null) { │ │89 - const ids = try DB.SortedSet(.read_write).init(try haxy_moment.putCursor(hash.hashInt(hash_kind, id_set_key))); │ │89 + const ids = try DB.SortedSet(.read_write).init(try haxy_moment.putCursor(hash.hashInt(hash_kind, all_id_set_key)));│ │90 try ids.put(&order_key); │ │91 } │ │92 │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭ changed ──────────╮ │src/event/Issue.zig│ ╰───────────────────╯ ╭─────────────────────────────────────────────────────────────────╮ │37 // the moment keys `evt.merge` reads and writes for this kind│ │38 pub const merge_policy: evt.MergePolicy = .field_conflicts; │ │39 pub const record_map_key = "event-id->issue"; │ │40 -pub const id_set_key = "issue-id-set"; │ │40 +pub const all_id_set_key = "issue-id-set"; │ │41 pub const conflicts_key = "conflicted-issue-id->conflict"; │ │42 pub const id_to_field_to_oid_key = "issue-id->field->oid"; │ │43 pub const status_to_id_set_key = "status->issue-id-set"; │ ╰─────────────────────────────────────────────────────────────────╯ ╭──────╮ │next →│ ╰──────╯