Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…ned points is global, not per-project
  • Loading branch information...
commit babb9f501de85d912875a29577474b345ba38d6b 1 parent 90bbd61
@bureku authored Blake Ong committed
View
2  app/helpers/sprints_helper.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])
View
10 db/migrate/005_create_time_estimates.rb
@@ -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
2  init.rb
@@ -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]}
Please sign in to comment.
Something went wrong with that request. Please try again.