fix(tui): correct column names in file_history action queries + update beads

- file_history.rs: Fix SQL column references to match actual schema
  (position_new_path/position_old_path naming).

- beads: Update issue tracker state.
This commit is contained in:
teernisse
2026-02-18 22:56:59 -05:00
parent fb40fdc677
commit 418417b0f4
3 changed files with 10 additions and 10 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
bd-2og9
bd-1ser

View File

@@ -135,10 +135,10 @@ fn fetch_file_discussions(
};
let sql = format!(
"SELECT d.gitlab_discussion_id, n.author_username, n.body, n.new_path, n.created_at \
"SELECT d.gitlab_discussion_id, n.author_username, n.body, n.position_new_path, n.created_at \
FROM notes n \
JOIN discussions d ON d.id = n.discussion_id \
WHERE n.new_path IN ({in_clause}) {project_filter} \
WHERE n.position_new_path IN ({in_clause}) {project_filter} \
AND n.is_system = 0 \
ORDER BY n.created_at DESC \
LIMIT 50"
@@ -258,8 +258,8 @@ mod tests {
author_username TEXT,
body TEXT,
note_type TEXT,
new_path TEXT,
old_path TEXT,
position_new_path TEXT,
position_old_path TEXT,
created_at INTEGER NOT NULL,
updated_at INTEGER NOT NULL,
last_seen_at INTEGER NOT NULL