Ticket #4587 (closed defect: fixed)

Opened 4 years ago

Last modified 1 year ago

Traceback when no milestones are defined

Reported by: anonymous Assigned to: 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()
 170.
 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)
 173.
 174. add_stylesheet(req, 'hw/css/burndown.css')
 175.
 176. self.update_burndown_data()
 177.

Attachments

trac-scrumburndownplugin-add-validation.patch (2.9 kB) - added by anonymous on 02/06/09 20:15:27.
Adds some basic validation, so trac shouldn't crash

Change History

02/06/09 20:15:27 changed by anonymous

  • attachment trac-scrumburndownplugin-add-validation.patch added.

Adds some basic validation, so trac shouldn't crash

02/16/09 11:23:44 changed by anonymous

  • owner changed from sambloomquist to daan.

02/01/12 06:04:44 changed by rjollos

  • owner changed from daan to rjollos.
  • status changed from new to assigned.
  • description changed.

02/01/12 06:06:22 changed by rjollos

  • status changed from assigned to closed.
  • resolution set to fixed.

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

02/01/12 06:07:48 changed by rjollos

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


Add/Change #4587 (Traceback when no milestones are defined)




Change Properties
Action