╭ changed ──────────╮ │src/event/Patch.zig│ ╰───────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭───────────────────────────────────────────────────────────────────────────╮ │100 pub const tag_status_to_id_set_key = "tag+status->patch-id-set"; │ │101 pub const revision_to_id_set_key = "target-branch+oid->patch-id-set"; │ │102 pub const source_to_id_set_key = "source-branch->patch-id-set"; │ │103 +pub const patch_id_to_mergeability_key = "patch-id->mergeability"; │ │104 │ │105 pub const TagStatusKey = [tag_max_len + 1 + StatusKind.longest_len]u8;│ │106 │ ╰───────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ │193 }, │ │194 } │ │195 │ │196 + if (record.removed or status_kind != .open) { │ │197 + const key = hash.hashInt(hash_kind, patch_id_to_mergeability_key); │ │198 + if (try haxy_moment.getCursor(key) != null) { │ │199 + const checks = try DB.HashMap(.read_write).init(try haxy_moment.putCursor(key));│ │200 + _ = try checks.remove(record_key); │ │201 + } │ │202 + } │ │203 + │ │204 const order_key = evt.orderKeyDesc(record.created_order, event_id); │ │205 if (existing_maybe) |existing| { │ │206 if (event_oid != null or record.removed) _ = try conflicts.remove(&order_key); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────╯