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:
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
bd-2og9
|
bd-1ser
|
||||||
|
|||||||
@@ -135,10 +135,10 @@ fn fetch_file_discussions(
|
|||||||
};
|
};
|
||||||
|
|
||||||
let sql = format!(
|
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 \
|
FROM notes n \
|
||||||
JOIN discussions d ON d.id = n.discussion_id \
|
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 \
|
AND n.is_system = 0 \
|
||||||
ORDER BY n.created_at DESC \
|
ORDER BY n.created_at DESC \
|
||||||
LIMIT 50"
|
LIMIT 50"
|
||||||
@@ -258,8 +258,8 @@ mod tests {
|
|||||||
author_username TEXT,
|
author_username TEXT,
|
||||||
body TEXT,
|
body TEXT,
|
||||||
note_type TEXT,
|
note_type TEXT,
|
||||||
new_path TEXT,
|
position_new_path TEXT,
|
||||||
old_path TEXT,
|
position_old_path TEXT,
|
||||||
created_at INTEGER NOT NULL,
|
created_at INTEGER NOT NULL,
|
||||||
updated_at INTEGER NOT NULL,
|
updated_at INTEGER NOT NULL,
|
||||||
last_seen_at INTEGER NOT NULL
|
last_seen_at INTEGER NOT NULL
|
||||||
|
|||||||
Reference in New Issue
Block a user