Modify

Opened 16 years ago

Closed 13 years ago

Last modified 13 years ago

#4587 closed defect (fixed)

Traceback when no milestones are defined

Reported by: anonymous Owned by: Ryan J Ollos
Priority: normal Component: ScrumBurndownPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description (last modified by Ryan J Ollos)

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 (1)

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

Download all attachments as: .zip

Change History (5)

Changed 16 years ago by anonymous

Adds some basic validation, so trac shouldn't crash

comment:1 Changed 16 years ago by anonymous

Owner: changed from Sam Bloomquist to daan

comment:2 Changed 13 years ago by Ryan J Ollos

Description: modified (diff)
Owner: changed from daan to Ryan J Ollos
Status: newassigned

comment:3 Changed 13 years ago by Ryan J Ollos

Resolution: fixed
Status: assignedclosed

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

comment:4 Changed 13 years ago by Ryan J Ollos

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.