fix(doctor): improve diagnostic fix message output (#1187)
Problem: - Diagnostic fix messages were restricted to single lines - Inconsistent file path formatting in database sync issues - Outdated cleanup command suggested in maintenance fixes Solution: - Implement multiline support for doctor fix messages - Standardize issue file paths across database diagnostics - Update maintenance fix instructions to use 'bd admin cleanup' Impact: - Clearer and more accurate recovery instructions for users - Better readability of complex diagnostic output Fixes: GH#1170, GH#1171, GH#1172
This commit is contained in:
committed by
GitHub
parent
73d4d5ecb2
commit
460d2bf113
@@ -93,7 +93,7 @@ func CheckStaleClosedIssues(path string) DoctorCheck {
|
||||
Status: StatusWarning,
|
||||
Message: fmt.Sprintf("%d closed issue(s) older than %d days", cleanable, DefaultCleanupAgeDays),
|
||||
Detail: "These issues can be cleaned up to reduce database size",
|
||||
Fix: "Run 'bd doctor --fix' to cleanup, or 'bd cleanup --force' for more options",
|
||||
Fix: "Run 'bd doctor --fix' to cleanup, or 'bd admin cleanup --force' for more options",
|
||||
Category: CategoryMaintenance,
|
||||
}
|
||||
}
|
||||
@@ -155,7 +155,7 @@ func CheckExpiredTombstones(path string) DoctorCheck {
|
||||
Status: StatusWarning,
|
||||
Message: fmt.Sprintf("%d tombstone(s) older than %d days", expiredCount, ttlDays),
|
||||
Detail: "Expired tombstones can be pruned to reduce JSONL file size",
|
||||
Fix: "Run 'bd doctor --fix' to prune, or 'bd cleanup --force' for more options",
|
||||
Fix: "Run 'bd doctor --fix' to prune, or 'bd admin cleanup --force' for more options",
|
||||
Category: CategoryMaintenance,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user