Progress reads only a design's head, and says so beside the tracker's tree when even that fails (issue 1947)

This commit is contained in:
2026-11-07 00:21:17 +01:00
parent 1da83c29dd
commit be7d649d1f
7 changed files with 99 additions and 10 deletions
@@ -329,6 +329,12 @@ func (k *KB) progressDesign(p *Progress, number int, milestone string) error {
return err
}
d := ds[0]
if d.Unread != "" {
p.Warnings = append(p.Warnings, d.Unread)
if d.Title == "" {
d.Title = fmt.Sprintf("design %d", d.Number)
}
}
if len(d.Milestones) == 0 {
return fmt.Errorf("design %d has no milestone records in the issue tracker: seed them from its table with "+
"issue-tracker.import milestones %d", number, number)