Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Bug #1093 (new)

Opened 9 years ago

Last modified 9 years ago

ZeroDivisionError on dashboard when team has no capacity but contingent

Reported by: rbuchholz Owned by:
Milestone: n.a. Sprint: n.a.
Impact: Low Complexity: Easy
Total Remaining Time: n.a.

Description (last modified by rbuchholz)

If you have a team where all members have zero capacity, a widget on the dashboard throws.

Steps to reproduce:

  • create a new environment
  • create a new team
  • add one user, do not click "add capacity" but just "submit"
  • create a sprint for the team
  • set up a contingent
  • visit dashboard
File "trac011stable/trac/web/main.py", line 450, in _dispatch_request
  dispatcher.dispatch(req)
File "trac011stable/trac/web/main.py", line 206, in dispatch
  resp = chosen_handler.process_request(req)
File "agilo_open/agilo/scrum/backlog/dashboard.py", line 109, in process_request
  self._add_charts_to_template_data(req, current_sprint_name, data)
File "agilo_open/agilo/scrum/backlog/dashboard.py", line 80, in _add_charts_to_template_data
  widget.prepare_rendering(req)
File "agilo_open/agilo/scrum/burndown/charts.py", line 165, in prepare_rendering
  self._populate_with_sprint_and_viewer_timezone(self.data['sprint_name'], req.tz)
File "agilo_open/agilo/scrum/burndown/charts.py", line 177, in _populate_with_sprint_and_viewer_timezone
  capacity_data = self._get_capacity(sprint, viewer_timezone, self._is_filtered_backlog()),
File "agilo_open/agilo/scrum/burndown/charts.py", line 315, in _get_capacity
  return self._get_capacity_data(sprint, viewer_timezone)
File "agilo_open/agilo/scrum/burndown/charts.py", line 310, in _get_capacity_data
  return sprint.team.capacity(viewer_timezone).summed_hourly_capacities_in_sprint(sprint)
File "agilo_open/agilo/scrum/team/model.py", line 197, in summed_hourly_capacities_in_sprint
  capacities = self.hourly_capacities_in_sprint(sprint)
File "agilo_open/agilo/scrum/team/model.py", line 194, in hourly_capacities_in_sprint
  return self._deduct_contingent_from_daily_capacity(summed_contingents, capacities)
File "agilo_open/agilo/scrum/team/model.py", line 168, in _deduct_contingent_from_daily_capacity
  capacity_percentage = each.capacity / total_capacity

Change History (2)

comment:1 Changed 9 years ago by rbuchholz

  • Description modified (diff)

comment:2 Changed 9 years ago by rbuchholz

  • Description modified (diff)
  • Summary changed from ZeroDivisionError on dashboard when team has no capacity to ZeroDivisionError on dashboard when team has no capacity but contingent
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.15 © 2008-2016 Agilo Software all rights reserved (this page was served in: 0.134167 sec.)