Modify ↓
Opened 15 years ago
#5583 new defect
No graph when no components are defined
Reported by: | Owned by: | daan | |
---|---|---|---|
Priority: | normal | Component: | ScrumBurndownPlugin |
Severity: | major | Keywords: | |
Cc: | Trac Release: | 0.11 |
Description
If there are no components defined there will be no burndown visible. That's very surprising and difficult to figure out without looking at the code. Would be nice to have a fix for that.
Code (burndown.py), problem marked by XXX:
def update_burndown_data(self): db = self.env.get_db_cnx() cursor = db.cursor() # today's date today = format_date(int(time.time())) milestones = dbhelper.get_milestones(db) components = dbhelper.get_components(db) for mile in milestones: if mile['started'] and not mile['completed']: # milestone started, but not completed XXX PROBLEM>>> for comp in components: XXXXX HERE: WHAT IF NO COMPONENTS?? XXXXX sqlSelect = "SELECT est.value AS estimate, ts.value AS spent "\ "FROM ticket t "\
Thanks!
Attachments (0)
Note: See
TracTickets for help on using
tickets.