Project

General

Profile

ToDo lists plugin

Added by david lyons over 15 years ago

Hello people,

Ive developed a very usable little ToDo lists plugin for Redmine, sort of inspired by Basecamp. It allows you to create nestable per-project todo lists, as well as a general, personal ToDo list for stuff not related to a particular project.
It supports:
  • drag & drop reordering of lists
  • Ability to tie a todo item to an Issue
  • Ability to assign todos to other users
  • Ability to assign a due date to Todo items

Intended use is for developers - We found that Issues(bug/feature request) are often too coarse and can represent too large a unit of work to use it to track your day-to-day work. For example - there might be a feature request to say 'add a new screen with the ability to search users by various fields, and calculate their blah blah blah'. We use the todo lists to keep track of all the things we have to do(design, implement each sub feature, etc) to implement that Feature.

I did intend to add some basic Scrumm-ish workflow management to the todo lists; however it seems now that there are other Scrumm plugins around now built by larger teams than me that are more sophisticated than I could probably achieve in my spare time.

Anyway, check it out at http://github.com/dalyons/redmine-todos-scrum-plugin/tree/master and see if it warrants inclusion on the Wiki plugins list :). Any feedback, suggestions etc, very welcome.


Replies (146)

RE: ToDo lists plugin - Added by Nicolas Zinopoulos almost 15 years ago

Hi to all !

I have installed the ToDos List plugin (0.0.3.9) by cloning the git repository into my Redmine installation (Redmine 0.8.7.devel.3076 (MySQL)).
The global My Todos and the project-specific ToDos pages seem to work fine. However when I try to display any issue, linked or not to a ToDo list, I get a 500 Internal Server Error.
The log shows the following:

Processing IssuesController#show (for ---.--.--.-- at 2009-11-20 11:47:39) [GET]
  Parameters: {"action"=>"show", "id"=>"49", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml

ActionView::TemplateError (Can only render or redirect once per action) on line #17 of app/views/layouts/base.rhtml:
14:       body {behavior: url(<%= stylesheet_path "csshover.htc" %>);}
15:     </style>
16: <![endif]-->
17: <%= call_hook :view_layouts_base_html_head %>
18: <!-- page specific tags -->
19: <%= yield :header_tags -%>
20: </head>

    lib/redmine/hook.rb:113:in `send'
    lib/redmine/hook.rb:113:in `view_layouts_base_html_head'
    lib/redmine/hook.rb:63:in `send'
    lib/redmine/hook.rb:63:in `call_hook'
    lib/redmine/hook.rb:63:in `each'
    lib/redmine/hook.rb:63:in `call_hook'
    lib/redmine/hook.rb:60:in `call_hook'
    lib/redmine/hook.rb:144:in `call_hook'
    app/views/layouts/base.rhtml:17:in `_run_rhtml_app47views47layouts47base46rhtml'
    app/controllers/issues_controller.rb:124:in `show_without_todo'
    app/controllers/issues_controller.rb:123:in `show_without_todo'

Rendering E:/USERS/SVN_Agent/DocHTTPServer/Redmine/public/500.html (500 Internal Server Error)

Removing the plugin solves the problem but it would be so much better with that very useful plugin :-)
Can you please help me ?

Best regards,

Nicolas

RE: ToDo lists plugin - Added by Sang Hyun Park almost 15 years ago

NOTE: the plugin directory has to be "redmine_todos_plugin", because Engines loads plugin stylesheets by path, not plugin name, which is a little lame.

RE: ToDo lists plugin - Added by Nicolas Zinopoulos almost 15 years ago

I already checked that and it is correct. Anyhow, as explained in my previous post, the plugin works partially, but breaks other functionality.
In case it is pertinent, here is the list of the other plugins installed:
  • Bulk Time Entry (0.3.0)
  • Projects Tree View (0.0.2)
  • Question (0.3.0)
  • Graphs (0.1.0)
  • Issues Group (0.1.4)
  • My Widgets (0.1.0)
  • Schedules (GOYELLO 0.4.1.5)
  • Tab (0.3.1)
  • Wiki Extensions (0.1.5)
  • Stuff-To-Do (0.3.0)
  • System Notification (0.2.0)
  • Timesheet (0.5.0)

Any ideas?

Regards,

Nicolas

RE: ToDo lists plugin - Added by Maxim Kostenko almost 15 years ago

Hello
I'm have the same issu with ToDo lists plugin

Processing IssuesController#show (for 94.27.105.184 at 2009-11-26 15:12:54) [GET]
Parameters: {"action"=>"show", "id"=>"116", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml

ActionView::TemplateError (Can only render or redirect once per action) on line #17 of app/views/layouts/base.rhtml:
14: body {behavior: url(<%= stylesheet_path "csshover.htc" >);}
15: </style>
16: <![endif]-->
17: <
= call_hook :view_layouts_base_html_head >
18: <!-- page specific tags -->
19: <
= yield :header_tags -%>
20: </head>

any decision ?

RE: ToDo lists plugin - Added by Maxim Kostenko almost 15 years ago

Maxim Kostenko wrote:

Hello
I'm have the same issu with ToDo lists plugin

Processing IssuesController#show (for X.X.X.X at 2009-11-26 15:12:54) [GET]
Parameters: {"action"=>"show", "id"=>"116", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml

ActionView::TemplateError (Can only render or redirect once per action) on line #17 of app/views/layouts/base.rhtml:
14: body {behavior: url(<%= stylesheet_path "csshover.htc" >);}
15: </style>
16: <![endif]-->
17: <
= call_hook :view_layouts_base_html_head >
18: <!-- page specific tags -->
19: <
= yield :header_tags -%>
20: </head>

any decision ?

RE: ToDo lists plugin - Added by Linghua Tseng almost 15 years ago

Hello,
I'll get 500 Internal Server Error after I deleted some of my projects.
It only occurs if I ever joined to the deleted projects and wrote some TODOs on them.

ActionView::TemplateError (undefined method `name' for nil:NilClass) on line #26 of vendor/plugins/redmine_todos_plugin/app/views/mytodos/index.html.erb:
23:
24:     <h3>
25:       
26:         <%= link_to h(project.name),
27:            {:controller => 'todos', :action => 'index', :project_id => project},
28:            :class => (User.current.member_of?(project) ? "icon icon-fav" : ""),
29:            :title => l(:mytodos_edit_project_tooltip) %>

    vendor/plugins/redmine_todos_plugin/app/views/mytodos/index.html.erb:26
    vendor/plugins/redmine_todos_plugin/app/views/mytodos/index.html.erb:22:in `each'
    vendor/plugins/redmine_todos_plugin/app/views/mytodos/index.html.erb:22
    passenger (2.2.5) lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
    passenger (2.2.5) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_application'
    passenger (2.2.5) lib/phusion_passenger/utils.rb:183:in `safe_fork'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:163:in `start'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'

RE: ToDo lists plugin - Added by Shoaibi . almost 15 years ago

Grzegorz Miklaszewski wrote:

There are two routes files in the plugin folder:
/vendor/plugins/redmine_todos_plugin/routes.rb
/vendor/plugins/redmine_todos_plugin/config/routes.rb

In the first one which is actually working there is no todo resource with "user_" prefix. It's in the second file. You can copy it and that will work.

I overwrote the main routes.rb file with the one inside config folder to get rid of:

ActionView::TemplateError (undefined method `user_todos_path' for #<ActionView::Base:0xb7632d08>) on line #11 of vendor/plugins/redmine_todos_plugin/app/views/todos/_new_todo.html.erb:

(which is same as scott's issue)

and now i get

ActionView::TemplateError (wrong number of arguments (2 for 1)) on line #25 of vendor/plugins/redmine_todos_plugin/app/views/todos/_todo.html.erb:
22:           :html => {:class => todo_class} 
23:          )
24:     %><%= link_to_remote( image_tag('add.png', :title => l(:todo_add_child_tooltip)), 
25:       :url => new_polymorphic_url( [parent_object,:todo], :parent_id => todo, :issue_id => todo_issue), :method => :get,
26:          
27:       #{ :controller => "#{'projects/' + todo.project.identifier.to_s + '/' if todo.project}#{'issues/' + todo_issue.to_s + '/' if todo_issue}#{todos_controller}/#{todo.id}",     :action => 'new' },
28:       :html => {:class => 'icon-new'}, 

    vendor/plugins/redmine_todos_plugin/app/views/todos/_todo.html.erb:25:in `new_polymorphic_url'
    vendor/plugins/redmine_todos_plugin/app/views/todos/_todo.html.erb:25:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_todo46html46erb'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
    vendor/rails/actionpack/lib/action_view/partial_template.rb:20:in `render'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
    vendor/rails/actionpack/lib/action_view/partial_template.rb:19:in `render'
    vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
    vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
    vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
    vendor/plugins/redmine_todos_plugin/app/views/todos/_todo_li.html.erb:2:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_todo_li46html46erb'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
    vendor/rails/actionpack/lib/action_view/partial_template.rb:20:in `render'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
    vendor/rails/actionpack/lib/action_view/partial_template.rb:19:in `render'
    vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
    vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
    vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
    vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:7:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_root_todos46html46erb'
    vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:6:in `each'
    vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:6:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47todos47_root_todos46html46erb'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
    vendor/rails/actionpack/lib/action_view/partial_template.rb:20:in `render'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:30:in `benchmark'
    vendor/rails/actionpack/lib/action_view/partial_template.rb:19:in `render'
    vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
    vendor/rails/actionpack/lib/action_view/partials.rb:110:in `render_partial'
    vendor/rails/actionpack/lib/action_view/base.rb:277:in `render'
    vendor/plugins/redmine_todos_plugin/app/views/mytodos/index.html.erb:14:in `_run_erb_47vendor47plugins47redmine_todos_plugin47app47views47mytodos47index46html46erb'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `send'
    vendor/rails/actionpack/lib/action_view/base.rb:342:in `execute'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `send'
    vendor/rails/actionpack/lib/action_view/template_handlers/compilable.rb:29:in `render'
    vendor/rails/actionpack/lib/action_view/template.rb:35:in `render'
    vendor/rails/actionpack/lib/action_view/template.rb:22:in `render_template'
    vendor/rails/actionpack/lib/action_view/base.rb:248:in `render_file'
    vendor/rails/actionpack/lib/action_controller/base.rb:1112:in `render_for_file'
    vendor/rails/actionpack/lib/action_controller/base.rb:845:in `render_with_no_layout'
    vendor/rails/actionpack/lib/action_controller/layout.rb:251:in `render_without_benchmark'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
    vendor/rails/activesupport/lib/active_support/core_ext/benchmark.rb:8:in `realtime'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:51:in `render'
    vendor/rails/actionpack/lib/action_controller/base.rb:1161:in `default_render'
    vendor/rails/actionpack/lib/action_controller/base.rb:1167:in `perform_action_without_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:579:in `call_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    vendor/rails/actionpack/lib/action_controller/rescue.rb:201:in `perform_action_without_caching'
    vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `passenger_orig_perform_action'
    vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'
    vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
    vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `passenger_orig_perform_action'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/railz/request_handler.rb:65:in `perform_action'
    vendor/rails/actionpack/lib/action_controller/base.rb:529:in `send'
    vendor/rails/actionpack/lib/action_controller/base.rb:529:in `process_without_filters'
    vendor/rails/actionpack/lib/action_controller/filters.rb:568:in `process_without_session_management_support'
    vendor/rails/actionpack/lib/action_controller/session_management.rb:130:in `process'
    vendor/rails/actionpack/lib/action_controller/base.rb:389:in `process'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:149:in `handle_request'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'
    vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/railz/request_handler.rb:50:in `process_request'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/railz/application_spawner.rb:374:in `start_request_handler'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/utils.rb:184:in `safe_fork'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/railz/application_spawner.rb:330:in `handle_spawn_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:163:in `start'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/railz/application_spawner.rb:209:in `start'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    /usr/lib/ruby/gems/1.8/gems/passenger-2.2.7/bin/passenger-spawn-server:61

Rendering /var/www/vhosts.d/redmine.stagging.me/public/500.html (500 Internal Server Error)

RE: ToDo lists plugin - Added by Kevin Bosman almost 15 years ago

Shoaibi . wrote:

and now i get

ActionView::TemplateError (wrong number of arguments (2 for 1)) on line #25 of vendor/plugins/redmine_todos_plugin/app/views/todos/_todo.html.erb:
[...]

Is that the same issue as this one? http://github.com/dalyons/redmine-todos-scrum-plugin/issues#issue/8
I would recommend applying the patch given in that thread.

RE: ToDo lists plugin - Added by Shoaibi . almost 15 years ago

Kevin Bosman wrote:

Shoaibi . wrote:

and now i get

ActionView::TemplateError (wrong number of arguments (2 for 1)) on line #25 of vendor/plugins/redmine_todos_plugin/app/views/todos/_todo.html.erb:
[...]

Is that the same issue as this one? http://github.com/dalyons/redmine-todos-scrum-plugin/issues#issue/8
I would recommend applying the patch given in that thread.

yes... thanks, i wonder why this patch wasn't applied to main branch.... guess i will use the fork next time.

Spam removed - Added by dans a fag faggot almost 15 years ago

Spam removed by Mischa The Evil.

RE: ToDo lists plugin - Added by Grant McHerron over 14 years ago

I may have a possible problem with Redmine v0.9 as I get:

rake aborted!
Child already added

when I run migrate_plugins. The full trace has been loaded into Issue #18:

http://github.com/dalyons/redmine-todos-scrum-plugin/issues#issue/18

Is this something I'm doing wrong or does the todos plugin need to be updated to work with v0.9?

RE: ToDo lists plugin - Added by h qj over 14 years ago

on redmine Redmine 0.9.2.stable (MySQL)

ActionView::TemplateError (Can only render or redirect once per action) on line #17 of app/views/layouts/base.rhtml:
14: body {behavior: url(<%= stylesheet_path "csshover.htc" >);}
15: </style>
16: <![endif]-->
17: <
= call_hook :view_layouts_base_html_head >
18: <!-- page specific tags -->
19: <
= yield :header_tags -%>
20: </head>

lib/redmine/hook.rb:113:in `send'
lib/redmine/hook.rb:113:in `view_layouts_base_html_head'
lib/redmine/hook.rb:63:in `send'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:63:in `each'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:60:in `call_hook'
lib/redmine/hook.rb:144:in `call_hook'
app/views/layouts/base.rhtml:17:in `_run_rhtml_app47views47layouts47base46rhtml'
app/controllers/issues_controller.rb:117:in `show_without_todo'
app/controllers/issues_controller.rb:116:in `show_without_todo'

Rendering D:/Program Files/BitNami Redmine Stack/apps/redmine/public/500.html (500 Internal Server Error)

Installed plugin:
redmine_todos_plugin
redmine_blogs
ezfaq_plugin
redmine_code_review

RE: ToDo lists plugin - Added by Iván López over 14 years ago

Hi all,

the plugin is not working in a fresh redmine 0.9.3 installation. I can create todos, but when I try to edit, delete, mark as completed or create a child, the behaviour is not correct. E.g:
- When I delete a todo it is deleted but if a reload the page the todo is displayed again.
- When I mark as completed or create a child nothing happens.
- When I click on edit, the todo is hidden but nothing happens.

This is happening in ubuntu with firefox, chrome and opera.

Can you reproduce (and fix) this problem?

Thanks and regards, Iván.

RE: ToDo lists plugin - Added by Ricardo Machado over 14 years ago

Hi,

I have installed the version of Redmine 0.9.0.devel.3269 (MySQL) and I have the same problems that Iván López.
I looked to the log files but they are clean of error.
Any suggestion to fix it?

Thanks,
Ricardo Machado

RE: ToDo lists plugin - Added by david lyons over 14 years ago

Ivan Khrustalev and Ricardo Machado

I tried to reproduce your error(s?), with the following steps:
  • Brand new redmine 0.9.3 install
  • setup database.yml
  • installed the todos plugin
  • ran rake db:migrate
  • ran rake db:migrate_plugins
  • ran script/server
  • logged in & setup permissions for todos module in global settings

everything works as expected, I dont see any issues sorry.

if you can trap the error in your development.log or production.log (inside /log) then maybe I can help.

RE: ToDo lists plugin - Added by Ricardo Machado over 14 years ago

I made a simple video to show you what's going on. http://www.youtube.com/watch?v=Ldejwu9Cyu8x%x%

Below I send you the log. It doesn't contain errors. I guess the requests made by AJAX are not being processed.

Processing TodosController#index (for 192.168.0.158 at 2010-03-10 12:01:43) [GET]
  Parameters: {"project_id"=>"interactivesurfacesw", "action"=>"index", "controller"=>"todos"}
Rendering template within layouts/base
Rendering todos/index
Completed in 423ms (View: 368, DB: 35) | 200 OK [http://redmine.ubiwhere.com/projects/interactivesurfacesw/todos]

Processing TodosController#index (for 192.168.0.158 at 2010-03-10 12:01:52) [GET]
  Parameters: {"project_id"=>"interactivesurfacesw", "action"=>"index", "controller"=>"todos"}
Rendering template within layouts/base
Rendering todos/index
Completed in 212ms (View: 185, DB: 6) | 200 OK [http://redmine.ubiwhere.com/projects/interactivesurfacesw/todos]

Processing TodosController#index (for 192.168.0.158 at 2010-03-10 12:02:55) [GET]
  Parameters: {"project_id"=>"interactivesurfacesw", "action"=>"index", "controller"=>"todos"}
Rendering template within layouts/base
Rendering todos/index
Completed in 5432ms (View: 396, DB: 6) | 200 OK [http://redmine.ubiwhere.com/projects/interactivesurfacesw/todos]

Thanks!
Ricardo

RE: ToDo lists plugin - Added by david lyons over 14 years ago

Sorry Ricardo, your youtube link doesnt seem to work. I tried to remove the % symbols, but no dice.

we can continue this via email, dalyons att gmail.com

RE: ToDo lists plugin - Added by Iván López over 14 years ago

Hi!,

the correct link for the video is: http://www.youtube.com/watch?v=Ldejwu9Cyu8

This is exactly what is happening to me.

Please, don't continue this via email because this is my problem too and I would like to see the solution.

Maybe your plugin is not compatible with other plugins. This is my actual list of plugins:
acts_as_activity_provider
acts_as_attachable
acts_as_customizable
acts_as_event
acts_as_list
acts_as_searchable
acts_as_tree
acts_as_versioned
acts_as_watchable
attachment_fu
awesome_nested_set
classic_pagination
coderay-0.7.6.227
customer_plugin
engines
gravatar
open_flash_chart
open_id_authentication
prepend_engine_views
redmine_charts
redmine_checkout
redmine_code_review
redmine_graphs
redmine_repository_control
redmine_restructuredtext_formatter
redmine_sprints
redmine_todos_plugin
rfpdf
ruby-net-ldap-0.0.4

Thanks and regards, Iván.

RE: ToDo lists plugin - Added by david lyons over 14 years ago

Ivan Khrustalev and ricardo...

I dont really know what to do from here. I cant reproduce the error, and you say are not getting anything at all in your logs when you do the javascript actions.
If thats true, its like the requests are not hitting rails at all, they are not being sent by the browser. Even if the url was wrong or something, there would be action in the logs.

I really dont know how to troubleshoot this one, sorry. Maybe try a different browser, just to rule out that it might be a javascript/Prototype problem. Check to see if you have any script errors on the page. Lame, but thats really the only things I can think of - that its a javascript/browser issue.

Sorry I cant be of more help, but without a log or some other way of showing an error, i really cant do anything.

RE: ToDo lists plugin - Added by tz tz over 14 years ago

hi,i got an error.

linux
BitNami Redmine Stack native installers
Redmine 0.9.3-0
plugins: redmine_todos_plugin , redmine_subtasks

step:
1)cp redmine_todos_plugin to apps/redmine/vendor/plugins/redmine_subtasks/
2)rake db:migrate_plugins , log:

Migrating redmine-todos-scrum-plugin...
CreateTodos: migrating ==================================================
-- create_table(:todos)
-> 0.0113s
CreateTodos: migrated (0.0115s) =========================================

AddDoneToTodos: migrating ===============================================
-- add_column(:todos, :done, :boolean)
-> 0.0073s
AddDoneToTodos: migrated (0.0075s) ====================================== AddCompletedAtToTodos: migrating ========================================
-- add_column(:todos, :completed_at, :datetime)
-> 0.0069s
AddCompletedAtToTodos: migrated (0.0071s) =============================== AddPositionToTodos: migrating ===========================================
-- add_column(:todos, :position, :integer)
-> 0.0074s
AddPositionToTodos: migrated (0.0076s) ================================== AddTodoableFields: migrating ============================================
-- add_column(:todos, :todoable_id, :integer)
> 0.0073s
-
add_column(:todos, :todoable_type, :string)
-> 0.0068s
AddTodoableFields: migrated (0.0145s) =================================== RemoveOldTodoAssociations: migrating ====================================
-- remove_column(:todos, :project_id)
-> 0.0070s
RemoveOldTodoAssociations: migrated (0.0272s) ===========================

3)view http://172.30.8.11/redmine/issues/6 , got 500 error,

log:

Processing IssuesController#show (for 172.30.7.56 at 2010-03-21 14:50:45) [GET]
Parameters: {"action"=>"show", "id"=>"6", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/show.rhtml

ActionView::TemplateError (undefined method `sort' for nil:NilClass) on line #6 of vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:
3: <% raise unless parent_object >
4:
5: <ul class="todos root" id="<
= TodosController::UL_ID + 'root' ><='not-editable' unless editable >">
6: <
for todo in todos.sort{|a,b| a.position <=> b.position} >
7: <
= render :partial => 'todos/todo_li', :locals => { :todo => todo, :editable => editable }%>
8: <% end %>
9: </ul>

vendor/plugins/redmine_todos_plugin/app/views/todos/_root_todos.html.erb:6
vendor/plugins/redmine_todos_plugin/app/views/issues/_todos.html.erb:17
lib/redmine/hook.rb:63:in `send'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:63:in `each'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:60:in `call_hook'
lib/redmine/hook.rb:144:in `call_hook'
vendor/plugins/advanced_roadmap/app/views/issues/show.rhtml:65:in `_run_rhtml_vendor47plugins47advanced_roadmap47app47views47issues47show46rhtml'
vendor/plugins/redmine_subtasks/app/controllers/issues_controller.rb:131
vendor/plugins/redmine_subtasks/app/controllers/issues_controller.rb:129:in `show'

Rendering /opt/bitnami_redmine/apps/redmine/public/500.html (500 Internal Server Error)

RE: ToDo lists plugin - Added by tz tz over 14 years ago

1)cp redmine_todos_plugin to apps/redmine/vendor/plugins/redmine_todos_plugin

RE: ToDo lists plugin - Added by Rodrigo Rosenfeld Rosas over 14 years ago

I think I have found the problem (at least I solved the problem here).

The problem is the "show_todos" method defined in IssuesControllerPatch that called "render :partial...". I removed the method from there and replaced that part in the hook to:

#  def view_issues_show_description_bottom(context ={ })
#    controller = context[:controller]
#    controller.show_todos
#  end
render_on :view_issues_show_description_bottom, :partial => 'todos', :locals => { :todos => @todos }

RE: ToDo lists plugin - Added by Rodrigo Rosenfeld Rosas over 14 years ago

Follows a patch I've applied at my work.

RE: ToDo lists plugin - Added by tz tz over 14 years ago

Rodrigo Rosenfeld Rosas wrote:

Follows a patch I've applied at my work.

well done.

ps: zh.xml for missing label

  label_related_todos: 相关日程

  todo_not_found_error: 找不到日程!

  label_todo: 日程
  todo_status_done: 已完成
  todo_status_new: 新建
  todo_status_updated: 更新
zh.yml (1.39 KB) zh.yml

RE: ToDo lists plugin - Added by tz tz over 14 years ago

another bug?

add a query with order, can't save.

production.log
Processing QueriesController#edit (for 172.30.7.56 at 2010-03-31 09:57:06) [POST]
Parameters: {"default_columns"=>"1", "commit"=>"保\345\255\230", "confirm"=>"1", "action"=>"edit", "authenticity_token"=>"wTAyl9lpcQWyEtmo2DxnKJQxboDMRaMPZ3T3e2lj/UY=", "id"=>"1", "fields"=>["status_id"], "operators"=>{"start_date"=>"<t+", "watcher_id"=>"=", "estimated_hours"=>"=", "created_on"=>">t-", "priority_id"=>"=", "done_ratio"=>"=", "updated_on"=>">t-", "subject"=>"~", "assigned_to_id"=>"=", "cf_8"=>"=", "tracker_id"=>"=", "due_date"=>"<t+", "author_id"=>"=", "status_id"=>"o", "cf_10"=>"<t+"}, "values"=>{"start_date"=>[""], "watcher_id"=>["me"], "estimated_hours"=>[""], "created_on"=>[""], "priority_id"=>["3"], "done_ratio"=>[""], "updated_on"=>[""], "subject"=>[""], "assigned_to_id"=>["me"], "cf_8"=>[""], "tracker_id"=>["8"], "due_date"=>[""], "author_id"=>["me"], "status_id"=>["1"], "cf_10"=>[""]}, "controller"=>"queries", "query"=>{"column_names"=>["project", "tracker", "status", "priority", "subject", "assigned_to", "updated_on", "start_date", "due_date", "done_ratio", "cf_10"], "name"=>"按项目分组查\347\234\213", "group_by"=>"project", "sort_criteria"=>{"0"=>["project", "asc"], "1"=>["", ""], "2"=>["", ""]}, "is_public"=>"1"}}
Redirected to http://172.30.8.11/redmine/issues?query_id=1
Completed in 87ms (DB: 14) | 302 Found [http://172.30.8.11/redmine/queries/edit/1]

Processing IssuesController#index (for 172.30.7.56 at 2010-03-31 09:57:06) [GET]
Parameters: {"action"=>"index", "query_id"=>"1", "controller"=>"issues"}

NoMethodError (undefined method `todos' for nil:NilClass):

Rendering /opt/bitnami_redmine/apps/redmine/public/500.html (500 Internal Server Error)

(76-100/146)