Opened 8 years ago

Closed 5 years ago

Last modified 5 years ago

#4587 closed defect (fixed)

Traceback when no milestones are defined

Reported by: anonymous Owned by: rjollos
Priority: normal Component: ScrumBurndownPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by rjollos)

When no milestones are defined in a project, selecting the burndown tab results in a traceback. This should be fixed to display something useful, or at least not crash trac.

Code fragment:

 168. data['draw_graph'] = req.hdf['draw_graph'] = True
 169. self.update_burndown_data()
 171. data['burndown_data'] = req.hdf['burndown_data'] = []
 172. data['burndown_data'] = req.hdf['burndown_data'] = self.get_burndown_data(db, selected_milestone, components, selected_component)
 174. add_stylesheet(req, 'hw/css/burndown.css')
 176. self.update_burndown_data()

Attachments (1)

trac-scrumburndownplugin-add-validation.patch (2.9 KB) - added by anonymous 8 years ago.
Adds some basic validation, so trac shouldn't crash

Download all attachments as: .zip

Change History (5)

Changed 8 years ago by anonymous

Adds some basic validation, so trac shouldn't crash

comment:1 Changed 8 years ago by anonymous

  • Owner changed from sambloomquist to daan

comment:2 Changed 5 years ago by rjollos

  • Description modified (diff)
  • Owner changed from daan to rjollos
  • Status changed from new to assigned

comment:3 Changed 5 years ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [11225]) Fixes #4587: Raise a TracError if no milestones are defined.

comment:4 Changed 5 years ago by rjollos

(In [11226]) Refs #4587: Egg was accidentally added in [11225].

Add Comment

Modify Ticket

as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.