Task loading is broken due to column order mismatch between database and FromRow instance.
jr task show fails with:
ConversionFailed {errSQLType = "TEXT", errHaskellType = "Int", errMessage = "need an int"}
The database has columns in this order (from ALTER TABLE ADD): 1. id, title, type, parent, namespace, status, priority 2. dependencies, description, created_at, updated_at 3. complexity (added later) 4. design_doc (added later, shouldn't exist?) 5. comments (added later)
But FromRow expects: 1. id, title, type, parent, namespace, status, priority 2. complexity 3. dependencies, description 4. comments 5. created_at, updated_at
Change loadTasks query from SELECT * FROM tasks to explicitly list columns in the expected order:
SELECT id, title, type, parent, namespace, status, priority,
complexity, dependencies, description, comments,
created_at, updated_at
FROM tasks
No activity yet.