-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
undefined method `find_all_by_tracker_id' [Redmine 3.0.1] #86
Comments
Rails 4 removed the dynamic finder methods (like Rails 4 replaced the dynamic finder methods with query methods (e.g. |
Hi prmartinuk, Thanks for your answer. We've tried it out and it started to work, or at least we do not have that error anymore. When I create a new Kanban Stage the tool creates it, but the list shows rows with empty name and description.Started POST "/redmine/kanban_stages" for 127.0.0.1 at 2015-04-07 17:24:50 +0100 Rendered plugins/ekanban/app/views/kanban_stages/index.html.haml within layouts/base (9.0ms) After this when we try to create a Kanban State we receive the following internal error:Started GET "/redmine/trackers/1/kanban_states/new" for 127.0.0.1 at 2015-04-07 17:28:02 +0100 Rendered plugins/ekanban/app/views/kanban_states/_form.html.haml (6.0ms) ActionView::Template::Error (undefined method |
I think the problem now might relate to the fact that Redmine 3.x added the gem In this case the security has stopped both the new Kanban State and the new Kanban Stage from having their attributes (name, tracker_id, etc) from being set, which is meaning they show blank and cause errors. There is a application configuration parameter that says whether the developer has to say it is mass assignable or protected, or if everything is assumed to be mass assignable unless you tell it otherwise. As far as I can understand from the forums by default the configuration parameter is enabled which means that the plugin needs to add As a quick fix I think you can just turn off application configuration parameter. To one of the initialising configuration files (I'd probably put it in Interestingly protected_attributes is now a gem file because it has been dropped from the Ruby core and has been replaced by Strong Parameters, so things may change again in a future Redmine release. |
Hi prmartinuk, thanks for the quick reply. We got a step forward, but it is still not working. NoMethodError (undefined method |
Unfortunately I'll probably have to join you on your conclusion that it might be best to just wait until the plugin is updated to support Redmine 3.x (or rather Rails 4.x which seems to be the main issue), we keep hitting Rails change after Rails change. If you did want to fix the diff error then the code underlying the diff function can be found here:
|
We changed the code to your version.
After this it stopped crashing. But we still have issues like
We could live with that for now :) but then we got another error (see below). Regards, Started GET "/redmine/trackers/1/kanban_states" for 127.0.0.1 at 2015-04-09 11:12:16 +0100 NoMethodError (undefined method |
Hi crick3t I think that correct change is
|
I made some modifications in ekanban plugin in order to work with redmine 3.0.3. I have little knowledge in ruby/rails and probably I made some mistakes but now the plugin is working better in my environment but with some errors yet. I´m using ruby 2.1.2p95, Rails 4.2.1 and Redmine 3.0.3 and If you like, take a look in the diff file at |
A new diff revision is available at https://gist.github.com/luizduma/ee11352a8c52ef22f70c I made more changes using the tool arel_converter Now, I got "Internal error" when trying to list the kanbans (http://my_server/projects/test1/kanbans) redmine logStarted GET "/projects/test1/kanbans" for 10.0.0.100 at 2015-06-08 02:08:41 +0000 ActionView::Template::Error (undefined method |
Hello, Do someone have ekanban running in Redmine 3.1 ? I saw some attempts here to make it happen and I would like to happen - just want to be sure to not waste time =) |
This seems to be where the problem is: ekanban/lib/ekanban/user_patch.rb Line 32 in de5d026
Do anyone have any idea ? |
Hi - We're looking to upgrade Redmine from 2.3.2 to 3.1.1, and at the moment eKanban is a blocker on us upgrading. |
Hello @SteveDavis ! I guess nothing happened... I trying to make it work (I'm not a rails dev, but trying to fix things) - Could any rails dev here could help us make this happen ? I'm trying to get some help from the local Ruby on Rails community but still no luck =( Thanks ! |
We're having a rethink on this - may well have to go with a lower level of redmine in order to keep current functionality. Thanks for getting back on this sop promptly though! |
Hi,
We have tried to install this plugin with Redmine 3.0.1 and we almost done it (after spending a day on the install... :) ).
Unfortunately we stuck at an error (see below).
Does anyone know what is the issue here and how to solve it.
Thanks in advance.
Started GET "/redmine/kanban_states/setup" for 127.0.0.1 at 2015-03-31 16:34:47 +0100
Processing by KanbanStatesController#setup as HTML
Current user: admin (id=1)
Rendered plugins/ekanban/app/views/kanban_states/_state_list.html.haml (4.0ms)
Rendered plugins/ekanban/app/views/common/_tabs.html.erb (5.0ms)
Rendered plugins/ekanban/app/views/kanban_states/index.html.haml within layouts/base (7.0ms)
Completed 500 Internal Server Error in 12ms
ActionView::Template::Error (undefined method
'find_all_by_tracker_id' for #<Class:0x5ca8cb8>): 3: - trackers = Tracker.all 4: - trackers.each do |t| 5: %h3= "Tracker #{t.name}" 6: - states = KanbanState.find_all_by_tracker_id(t.id) 7: - if !states.nil? 8: %table{:id => "kanban_state_#{t.id}",:class => "list"} 9: %thead activerecord (4.2.0) lib/active_record/dynamic_matchers.rb:26:in
method_missing'plugins/ekanban/app/views/kanban_states/_state_list.html.haml:6:in
block in _plugins_ekanban_app_views_kanban_states__state_list_html_haml___350479890_47900868' D:in
each'D:in
each' plugins/ekanban/app/views/kanban_states/_state_list.html.haml:4:in
_plugins_ekanban_app_views_kanban_states__state_list_html_haml___350479890_47900868'actionview (4.2.0) lib/action_view/template.rb:145:in
block in render' activesupport (4.2.0) lib/active_support/notifications.rb:166:in
instrument'actionview (4.2.0) lib/action_view/template.rb:333:in
instrument' actionview (4.2.0) lib/action_view/template.rb:143:in
render'actionview (4.2.0) lib/action_view/renderer/partial_renderer.rb:339:in
render_partial' actionview (4.2.0) lib/action_view/renderer/partial_renderer.rb:310:in
block in render'actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in
block in instrument' activesupport (4.2.0) lib/active_support/notifications.rb:164:in
block in instrument'activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in
instrument' activesupport (4.2.0) lib/active_support/notifications.rb:164:in
instrument'actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in
instrument' actionview (4.2.0) lib/action_view/renderer/partial_renderer.rb:309:in
render'actionview (4.2.0) lib/action_view/renderer/renderer.rb:47:in
render_partial' actionview (4.2.0) lib/action_view/renderer/renderer.rb:21:in
render'actionview (4.2.0) lib/action_view/helpers/rendering_helper.rb:32:in
render' haml (4.0.6) lib/haml/helpers/action_view_mods.rb:12:in
render_with_haml'plugins/ekanban/app/views/common/_tabs.html.erb:23:in
block in _plugins_ekanban_app_views_common__tabs_html_erb__88145661_50908020' plugins/ekanban/app/views/common/_tabs.html.erb:22:in
each'plugins/ekanban/app/views/common/_tabs.html.erb:22:in
_plugins_ekanban_app_views_common__tabs_html_erb__88145661_50908020' actionview (4.2.0) lib/action_view/template.rb:145:in
block in render'activesupport (4.2.0) lib/active_support/notifications.rb:166:in
instrument' actionview (4.2.0) lib/action_view/template.rb:333:in
instrument'actionview (4.2.0) lib/action_view/template.rb:143:in
render' actionview (4.2.0) lib/action_view/renderer/partial_renderer.rb:339:in
render_partial'actionview (4.2.0) lib/action_view/renderer/partial_renderer.rb:310:in
block in render' actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in
block in instrument'activesupport (4.2.0) lib/active_support/notifications.rb:164:in
block in instrument' activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in
instrument'activesupport (4.2.0) lib/active_support/notifications.rb:164:in
instrument' actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in
instrument'actionview (4.2.0) lib/action_view/renderer/partial_renderer.rb:309:in
render' actionview (4.2.0) lib/action_view/renderer/renderer.rb:47:in
render_partial'actionview (4.2.0) lib/action_view/renderer/renderer.rb:21:in
render' actionview (4.2.0) lib/action_view/helpers/rendering_helper.rb:32:in
render'haml (4.0.6) lib/haml/helpers/action_view_mods.rb:10:in
block in render_with_haml' haml (4.0.6) lib/haml/helpers.rb:89:in
non_haml'haml (4.0.6) lib/haml/helpers/action_view_mods.rb:10:in
render_with_haml' plugins/ekanban/app/views/kanban_states/index.html.haml:3:in
_plugins_ekanban_app_views_kanban_states_index_html_haml__975218400_50875932'actionview (4.2.0) lib/action_view/template.rb:145:in
block in render' activesupport (4.2.0) lib/active_support/notifications.rb:166:in
instrument'actionview (4.2.0) lib/action_view/template.rb:333:in
instrument' actionview (4.2.0) lib/action_view/template.rb:143:in
render'actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:54:in
block (2 levels) in render_template' actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in
block in instrument'activesupport (4.2.0) lib/active_support/notifications.rb:164:in
block in instrument' activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in
instrument'activesupport (4.2.0) lib/active_support/notifications.rb:164:in
instrument' actionview (4.2.0) lib/action_view/renderer/abstract_renderer.rb:39:in
instrument'actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:53:in
block in render_template' actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:61:in
render_with_layout'actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:52:in
render_template' actionview (4.2.0) lib/action_view/renderer/template_renderer.rb:14:in
render'actionview (4.2.0) lib/action_view/renderer/renderer.rb:42:in
render_template' actionview (4.2.0) lib/action_view/renderer/renderer.rb:23:in
render'actionview (4.2.0) lib/action_view/rendering.rb:100:in
_render_template' actionpack (4.2.0) lib/action_controller/metal/streaming.rb:217:in
_render_template'actionview (4.2.0) lib/action_view/rendering.rb:83:in
render_to_body' actionpack (4.2.0) lib/action_controller/metal/rendering.rb:32:in
render_to_body'actionpack (4.2.0) lib/action_controller/metal/renderers.rb:37:in
render_to_body' actionpack (4.2.0) lib/abstract_controller/rendering.rb:25:in
render'actionpack (4.2.0) lib/action_controller/metal/rendering.rb:16:in
render' actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:41:in
block (2 levels) in render'activesupport (4.2.0) lib/active_support/core_ext/benchmark.rb:12:in
block in ms' D:/Bitnami_Redmine/ruby/lib/ruby/2.0.0/benchmark.rb:296:in
realtime'activesupport (4.2.0) lib/active_support/core_ext/benchmark.rb:12:in
ms' actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:41:in
block in render'actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:84:in
cleanup_view_runtime' activerecord (4.2.0) lib/active_record/railties/controller_runtime.rb:25:in
cleanup_view_runtime'actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:40:in
render' plugins/ekanban/app/controllers/kanban_states_controller.rb:28:in
setup'actionpack (4.2.0) lib/action_controller/metal/implicit_render.rb:4:in
send_action' actionpack (4.2.0) lib/abstract_controller/base.rb:198:in
process_action'actionpack (4.2.0) lib/action_controller/metal/rendering.rb:10:in
process_action' actionpack (4.2.0) lib/abstract_controller/callbacks.rb:20:in
block in process_action'activesupport (4.2.0) lib/active_support/callbacks.rb:117:in
call' activesupport (4.2.0) lib/active_support/callbacks.rb:117:in
call'activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
call'activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
call'activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
call'activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
call'activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
call'activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting' activesupport (4.2.0) lib/active_support/callbacks.rb:234:in
call'activesupport (4.2.0) lib/active_support/callbacks.rb:234:in
block in halting' activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
call'activesupport (4.2.0) lib/active_support/callbacks.rb:169:in
block in halting' activesupport (4.2.0) lib/active_support/callbacks.rb:92:in
call'activesupport (4.2.0) lib/active_support/callbacks.rb:92:in
_run_callbacks' activesupport (4.2.0) lib/active_support/callbacks.rb:734:in
_run_process_action_callbacks'activesupport (4.2.0) lib/active_support/callbacks.rb:81:in
run_callbacks' actionpack (4.2.0) lib/abstract_controller/callbacks.rb:19:in
process_action'actionpack (4.2.0) lib/action_controller/metal/rescue.rb:29:in
process_action' actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:31:in
block in process_action'activesupport (4.2.0) lib/active_support/notifications.rb:164:in
block in instrument' activesupport (4.2.0) lib/active_support/notifications/instrumenter.rb:20:in
instrument'activesupport (4.2.0) lib/active_support/notifications.rb:164:in
instrument' actionpack (4.2.0) lib/action_controller/metal/instrumentation.rb:30:in
process_action'actionpack (4.2.0) lib/action_controller/metal/params_wrapper.rb:250:in
process_action' activerecord (4.2.0) lib/active_record/railties/controller_runtime.rb:18:in
process_action'actionpack (4.2.0) lib/abstract_controller/base.rb:137:in
process' actionview (4.2.0) lib/action_view/rendering.rb:30:in
process'actionpack (4.2.0) lib/action_controller/metal.rb:195:in
dispatch' actionpack (4.2.0) lib/action_controller/metal/rack_delegation.rb:13:in
dispatch'actionpack (4.2.0) lib/action_controller/metal.rb:236:in
block in action' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in
call'actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:73:in
dispatch' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:42:in
serve'actionpack (4.2.0) lib/action_dispatch/journey/router.rb:43:in
block in serve' actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in
each'actionpack (4.2.0) lib/action_dispatch/journey/router.rb:30:in
serve' actionpack (4.2.0) lib/action_dispatch/routing/route_set.rb:802:in
call'rack-openid (1.4.2) lib/rack/openid.rb:98:in
call' request_store (1.0.5) lib/request_store/middleware.rb:9:in
call'rack (1.6.0) lib/rack/etag.rb:24:in
call' rack (1.6.0) lib/rack/conditionalget.rb:25:in
call'rack (1.6.0) lib/rack/head.rb:13:in
call' actionpack-xml_parser (1.0.1) lib/action_dispatch/xml_params_parser.rb:16:in
call'actionpack (4.2.0) lib/action_dispatch/middleware/params_parser.rb:27:in
call' actionpack (4.2.0) lib/action_dispatch/middleware/flash.rb:260:in
call'rack (1.6.0) lib/rack/session/abstract/id.rb:225:in
context' rack (1.6.0) lib/rack/session/abstract/id.rb:220:in
call'actionpack (4.2.0) lib/action_dispatch/middleware/cookies.rb:560:in
call' activerecord (4.2.0) lib/active_record/query_cache.rb:36:in
call'activerecord (4.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in
call' actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:29:in
block in call'activesupport (4.2.0) lib/active_support/callbacks.rb:88:in
call' activesupport (4.2.0) lib/active_support/callbacks.rb:88:in
_run_callbacks'activesupport (4.2.0) lib/active_support/callbacks.rb:734:in
_run_call_callbacks' activesupport (4.2.0) lib/active_support/callbacks.rb:81:in
run_callbacks'actionpack (4.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in
call' actionpack (4.2.0) lib/action_dispatch/middleware/remote_ip.rb:78:in
call'actionpack (4.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:17:in
call' actionpack (4.2.0) lib/action_dispatch/middleware/show_exceptions.rb:30:in
call'railties (4.2.0) lib/rails/rack/logger.rb:38:in
call_app' railties (4.2.0) lib/rails/rack/logger.rb:20:in
block in call'activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in
block in tagged' activesupport (4.2.0) lib/active_support/tagged_logging.rb:26:in
tagged'activesupport (4.2.0) lib/active_support/tagged_logging.rb:68:in
tagged' railties (4.2.0) lib/rails/rack/logger.rb:20:in
call'actionpack (4.2.0) lib/action_dispatch/middleware/request_id.rb:21:in
call' rack (1.6.0) lib/rack/methodoverride.rb:22:in
call'rack (1.6.0) lib/rack/runtime.rb:18:in
call' activesupport (4.2.0) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in
call'actionpack (4.2.0) lib/action_dispatch/middleware/static.rb:113:in
call' rack (1.6.0) lib/rack/sendfile.rb:113:in
call'railties (4.2.0) lib/rails/engine.rb:518:in
call' railties (4.2.0) lib/rails/application.rb:164:in
call'railties (4.2.0) lib/rails/railtie.rb:194:in
public_send' railties (4.2.0) lib/rails/railtie.rb:194:in
method_missing'rack (1.6.0) lib/rack/urlmap.rb:66:in
block in call' rack (1.6.0) lib/rack/urlmap.rb:50:in
each'rack (1.6.0) lib/rack/urlmap.rb:50:in
call' thin-1.6.1-x86 (mingw32) lib/thin/connection.rb:82:in
block in pre_process'thin-1.6.1-x86 (mingw32) lib/thin/connection.rb:80:in
catch' thin-1.6.1-x86 (mingw32) lib/thin/connection.rb:80:in
pre_process'thin-1.6.1-x86 (mingw32) lib/thin/connection.rb:55:in
process' thin-1.6.1-x86 (mingw32) lib/thin/connection.rb:41:in
receive_data'eventmachine-1.0.3-x86 (mingw32) lib/eventmachine.rb:187:in
run_machine' eventmachine-1.0.3-x86 (mingw32) lib/eventmachine.rb:187:in
run'thin-1.6.1-x86 (mingw32) lib/thin/backends/base.rb:73:in
start' thin-1.6.1-x86 (mingw32) lib/thin/server.rb:162:in
start'thin-1.6.1-x86 (mingw32) lib/thin/controllers/controller.rb:87:in
start' thin-1.6.1-x86 (mingw32) lib/thin/runner.rb:200:in
run_command'thin-1.6.1-x86 (mingw32) lib/thin/runner.rb:156:in
run!' thin-1.6.1-x86 (mingw32) bin/thin:6:in
<top (required)>'bin/thin:16:in
load' bin/thin:16:in
The text was updated successfully, but these errors were encountered: