Permalink
Browse files

Use fibonacci for time estimation, fix issue #40 - Counter of unassig…

…ned points is global, not per-project
  • Loading branch information...
1 parent 90bbd61 commit babb9f501de85d912875a29577474b345ba38d6b @bureku committed with Blake Ong Jun 28, 2010
Showing with 7 additions and 7 deletions.
  1. +1 −1 app/helpers/sprints_helper.rb
  2. +5 −5 db/migrate/005_create_time_estimates.rb
  3. +1 −1 init.rb
@@ -81,7 +81,7 @@ def load_sprint_stats(sprint, data)
def load_project_stats(project)
data = {:all_points => 0, :pending => 0, :in_progress => 0, :done => 0, :percent_done => 0, :un_assign => 0 }
- UserStory.find(:all, :conditions => ["version_id is null"]).each { |i|
+ UserStory.find(:all, :conditions => ["version_id is null AND project_id = ?",project.id]).each { |i|
data[:un_assign] += i.time_estimate.value
}
for sprint in Version.find(:all, :conditions => ["project_id = ?",project.id])
@@ -14,11 +14,11 @@ def self.up
TimeEstimate.create :estimation => "3", :value => 3
TimeEstimate.create :estimation => "5", :value => 5
TimeEstimate.create :estimation => "8", :value => 8
- TimeEstimate.create :estimation => "14", :value => 14
- TimeEstimate.create :estimation => "20", :value => 20
- TimeEstimate.create :estimation => "50", :value => 50
- TimeEstimate.create :estimation => "80", :value => 80
- TimeEstimate.create :estimation => "100", :value => 100
+ TimeEstimate.create :estimation => "13", :value => 13
+ TimeEstimate.create :estimation => "21", :value => 21
+ TimeEstimate.create :estimation => "34", :value => 34
+ TimeEstimate.create :estimation => "55", :value => 55
+ TimeEstimate.create :estimation => "89", :value => 89
end
def self.down
View
@@ -14,7 +14,7 @@
name 'Redmine Scrum Sprints plugin'
author 'Software Project- Marcin Jedras'
description 'This is Redmine plugin for scrum software development'
- version '0.1.4'
+ version '0.1.4.1'
project_module :sprints do
permission :view_sprints, {:sprints => [:index, :show]}

0 comments on commit babb9f5

Please sign in to comment.