╭ changed ──────────╮ │src/event/Issue.zig│ ╰───────────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭────────────────────────────────────────────────────────────────────────────────╮ │39 pub const id_set_key = "issue-id-set"; │ │40 pub const conflicts_key = "conflicted-issue-id->conflict"; │ │41 pub const id_to_field_to_oid_key = "issue-id->field->oid"; │ │42 +pub const status_to_id_set_key = "status->issue-id-set"; │ │43 +pub const tag_status_to_id_set_key = "tag+status->issue-id-set"; │ │44 │ │45 // a "tag status" key names a tag's per-status issue set (tags can't contain│ │46 // spaces, so the pair is unambiguous) │ ╰────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │77 ) !void { │ │78 const issue_key = hash.hashInt(hash_kind, event_id); │ │79 │ │78 - const event_id_to_issue_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "event-id->issue"));│ │80 + const event_id_to_issue_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, record_map_key)); │ │81 const event_id_to_issue = try DB.HashMap(.read_write).init(event_id_to_issue_cursor); │ │82 │ │83 // the per-status sets the issues views list, ordered by creation, │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │84 // keyed by status name │ │83 - const status_to_issues_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "status->issue-id-set"));│ │85 + const status_to_issues_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, status_to_id_set_key)); │ │86 const status_to_issues = try DB.SortedMap(.read_write).init(status_to_issues_cursor); │ │87 │ │88 // the per-tag, per-status sets, keyed "tag,status" │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │87 - const tag_to_issues_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, "tag+status->issue-id-set"));│ │89 + const tag_to_issues_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, tag_status_to_id_set_key)); │ │90 const tag_to_issues = try DB.SortedMap(.read_write).init(tag_to_issues_cursor); │ │91 │ │92 const conflicts_cursor = try haxy_moment.putCursor(hash.hashInt(hash_kind, conflicts_key)); │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │318 return null │ │319 else │ │320 evt.currentMoment(repo_opts, repo)) catch return null; │ │319 - const event_id_to_issue_cursor = (try moment.getCursor(hash.hashInt(repo_opts.hash, "event-id->issue"))) orelse return null;│ │321 + const event_id_to_issue_cursor = (try moment.getCursor(hash.hashInt(repo_opts.hash, record_map_key))) orelse return null; │ │322 const event_id_to_issue = try DB.HashMap(.read_only).init(event_id_to_issue_cursor); │ │323 const issue_cursor = (try event_id_to_issue.getCursor(hash.hashInt(repo_opts.hash, id_bytes))) orelse return null; │ │324 const issue_map = try DB.HashMap(.read_only).init(issue_cursor); │ ╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯