Opened 8 years ago
No graph when no components are defined
|Reported by:||Owned by:||daan|
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 "\