fix: bd list --status all showing 0 issues (bd-148)
The status filter was treating 'all' as a literal status value instead of a special case meaning 'show all statuses'. This caused the SQL query to filter for 'WHERE status = all' which matched no issues. Fixed by checking if status is 'all' and skipping the filter in that case. - Fix list.go to skip status filter when status == 'all' - Update CHANGELOG with fix details - All tests pass
This commit is contained in:
@@ -29,7 +29,7 @@ var listCmd = &cobra.Command{
|
||||
filter := types.IssueFilter{
|
||||
Limit: limit,
|
||||
}
|
||||
if status != "" {
|
||||
if status != "" && status != "all" {
|
||||
s := types.Status(status)
|
||||
filter.Status = &s
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user