backlog 0.14.3 → 0.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,14 @@
1
+ == 0.14.4 2007-11-27
2
+
3
+ === Features
4
+
5
+ * Added highlight of field when updating start time or estimate in show period view to indicate that the field was updated.
6
+
7
+ === Fixes
8
+
9
+ * Fixed estimate update for started tasks.
10
+ * Fixed display of finished and reopened tasks in backlogs view for the first/last unplanned task.
11
+
1
12
  == 0.14.3 2007-11-20
2
13
 
3
14
  === Features
@@ -124,6 +124,10 @@ class TasksController < ApplicationController
124
124
  render :action => 'edit'
125
125
  end
126
126
  end
127
+
128
+ def update_task_estimate
129
+ update
130
+ end
127
131
 
128
132
  def destroy
129
133
  task = Task.find(params[:id])
@@ -19,7 +19,7 @@ module BacklogsHelper
19
19
  page.select("#completed_tasks_#{@task.period_id} tr").first.remove
20
20
  page.select("#completed_tasks_#{@task.period_id} tr").first.remove
21
21
  else
22
- page.insert_html :top, "completed_tasks", "<table id=\"completed_tasks_#{@task.period.id}\" class=\"input\" />"
22
+ page.insert_html :top, "completed_tasks", "<table id=\"completed_tasks_#{@task.period_id}\" class=\"input\" />"
23
23
  end
24
24
 
25
25
  page.insert_html :top, "completed_tasks_#{@task.period_id}", :partial => '/tasks/task', :locals => {:active => false, :hidden => true, :highlight_task => false}
@@ -1,8 +1,8 @@
1
1
  <div id="completed_tasks">
2
2
  <% @completed_tasks.map {|t| t.period}.uniq.each do |period| %>
3
- <table id="completed_tasks_<%=period ? period.id : 'unplanned'%>" class="input">
4
- <%= render :partial => '/tasks/period_header', :locals => {:period => period} unless @completed_tasks.map(&:period).uniq.size == 1 %>
5
- <%= render :partial => '/tasks/fields_header', :locals => {:backlog => @backlog, :active => false, :track_times => false} %>
3
+ <table id="completed_tasks_<%=period ? period.id : ''%>" class="input">
4
+ <%=render :partial => '/tasks/period_header', :locals => {:period => period} unless @completed_tasks.map(&:period).uniq.size == 1 %>
5
+ <%=render :partial => '/tasks/fields_header', :locals => {:backlog => @backlog, :active => false, :track_times => false} %>
6
6
  <% @completed_tasks.select {|t| t.period == period}.each do |task| %>
7
7
  <%=render :partial => '/tasks/task', :locals => { :task => task, :i => i, :active => false, :highlight_task => task == @selected_task, :hidden => false } %>
8
8
  <% i += 1 %>
@@ -1,2 +1,3 @@
1
1
  display_notice(page)
2
2
  page["task_#{@task.id}_todo"].value = @task.todo.to_s
3
+ page.visual_effect(:highlight, "task_#{@task.id}_todo")
@@ -1,2 +1,3 @@
1
1
  display_notice(page)
2
2
  page["work_#{@work.id}_started_at_time"].value = @work.started_at.strftime('%H:%M')
3
+ page.visual_effect(:highlight, "work_#{@work.id}_started_at_time")
@@ -123,6 +123,14 @@ class BacklogsControllerTest < Test::Unit::TestCase
123
123
  assert_equal Task::COMPLETED, after.resolution
124
124
  end
125
125
 
126
+ def test_finish_task_without_period
127
+ post :finish_task, :id => tasks(:not_planned).id
128
+
129
+ after = Task.find(tasks(:not_planned).id)
130
+ assert_not_nil after.finished_at
131
+ assert_equal Task::COMPLETED, after.resolution
132
+ end
133
+
126
134
  def test_reopen_task
127
135
  post :reopen_task, :id => tasks(:completed).id
128
136
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: backlog
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.14.3
7
- date: 2007-11-22 00:00:00 +01:00
6
+ version: 0.14.4
7
+ date: 2007-11-27 00:00:00 +01:00
8
8
  summary: Application to aid collecting, processing, organizing, reviewing and doing tasks.
9
9
  require_paths:
10
10
  - lib