Modify

Opened 6 years ago

Closed 3 years ago

Last modified 3 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()
 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 6 years ago.
Adds some basic validation, so trac shouldn't crash

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by anonymous

Adds some basic validation, so trac shouldn't crash

comment:1 Changed 6 years ago by anonymous

  • Owner changed from sambloomquist to daan

comment:2 Changed 3 years ago by rjollos

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

comment:3 Changed 3 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 3 years ago by rjollos

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

Add Comment

Modify Ticket

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


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

 
Note: See TracTickets for help on using tickets.