lib/story.rb in rallytastic-1.4.7 vs lib/story.rb in rallytastic-1.4.8
- old
+ new
@@ -11,15 +11,15 @@
def mmf
criteria.where(:is_mmf => true)
end
def in_progress
- criteria.where(:schedule_state => "In-Progress")
+ criteria.where(:schedule_state.in => ["In-Progress", "Defined", "Completed"])
end
def accepted
- criteria.where(:schedule_state => "Accepted")
+ criteria.where(:schedule_state.in => ["Accepted", "Released"])
end
def next
criteria.where(:schedule_state => "Backlog")
end
@@ -42,10 +42,11 @@
field :schedule_state
field :requested_by
field :requested_due_date, :type => Date
field :theme
field :revision_history_uri
+ field :revisions_last_pulled_on, :type => DateTime
field :rally_hash, :type => Hash
field :is_mmf, :type => Boolean
field :sized_on, :type => DateTime
field :prioritized_on, :type => DateTime
field :started_on, :type => DateTime
@@ -118,12 +119,14 @@
def revision_fields
[:sized_on, :prioritized_on, :started_on, :completed_on]
end
def parse_revisions_for_status_changes
- revision_fields.each do |field|
- timestamp = revision_parser.send(field, revisions)
- self.send("#{field}=", timestamp)
+ if revision_parser
+ revision_fields.each do |field|
+ timestamp = revision_parser.send(field, revisions)
+ self.send("#{field}=", timestamp)
+ end
end
end
def status_changes
set_revision_history