Duplicate views list plugin
Added by Vitaly Klimov over 12 years ago
Replies (14)
RE: Duplicate views list plugin - Added by Ivan Cenov over 12 years ago
I installed the plugin in trunk@8982 and when I went to Administration page and selected the plugin I received this
Processing ApplicationController#index (for 192.168.2.100 at 2012-02-24 23:03:53) [GET] Parameters: {"action"=>"index", "controller"=>"list_duplicate_views"} MissingSourceFile (no such file to load -- spreadsheet): vendor/plugins/redmine_list_duplicate_views/app/controllers/list_duplicate_views_controller.rb:1 d:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' d:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start' Rendering D:/biz/apps/redmine_trunk/public/500.html (500 Internal Server Error)Before installing this plugin I installed 'spreadsheet' gem.
RE: Duplicate views list plugin - Added by Ivan Cenov over 12 years ago
on branches/1.3-stable, after pressing Save to XLS:
Processing ListDuplicateViewsController#index (for 192.168.2.100 at 2012-02-24 23:40:42) [POST] Parameters: {"action"=>"index", "authenticity_token"=>"+PVHky1YFiDogwrOIeo8KYWRjH1w2qyP7YZG79/zTL8=", "save_legend"=>" Save to XLS", "controller"=>"list_duplicate_views"} Sending data redmine_duplicate_views.xls ArgumentError (Unknown MIME type xls): vendor/plugins/redmine_list_duplicate_views/app/controllers/list_duplicate_views_controller.rb:15:in `index' d:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:104:in `service' d:/Ruby187/lib/ruby/1.8/webrick/httpserver.rb:65:in `run' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:173:in `start_thread' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:162:in `start_thread' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:95:in `start' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `each' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:92:in `start' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:23:in `start' d:/Ruby187/lib/ruby/1.8/webrick/server.rb:82:in `start' Rendering D:/biz/apps/redmine_1_3_stable/public/500.html (500 Internal Server Error)
RE: Duplicate views list plugin - Added by Vitaly Klimov over 12 years ago
Thank you for your comments. I have updated plugin - now it is optional to have spreadsheet gem installed for plugin to run. Also XLS MIME type registered upon startup. Please check the new version.
RE: Duplicate views list plugin - Added by Vitaly Klimov over 12 years ago
Plugin updated to version 0.0.4.
Views now checked with extensions stripped, so some_view.rhtml and some_view.html.erb views would be detected as duplicates
RE: Duplicate views list plugin - Added by Terence Mill over 12 years ago
Please provide and work with github as repository. This way we can provide patches and issues. Firthermore updating is one click and you can merge own chnagements more easily thatn downloading and merging manually.
RE: Duplicate views list plugin - Added by Steven Wong over 12 years ago
Nice. I do not test it in Redmine 2.0.X. anyone has done this? the plugin support redmine 2.0.3?
Thanks.
RE: Duplicate views list plugin - Added by Vitaly Klimov over 12 years ago
Steven Wong wrote:
Nice. I do not test it in Redmine 2.0.X. anyone has done this? the plugin support redmine 2.0.3?
Yes, plugin is compatible with Redmine 2.x just follow installation instructions.
RE: Duplicate views list plugin - Added by Steven Wong over 12 years ago
Hi, Vitaly Klimov,
I tested it with redmine 2.0.3, and found something wrong with it. since redmine 2.0.X, is seems not support the diapatcher. There's the error when I start the Redmine.
>> Using rack adapter C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_support/depende ncies.rb:251:in `require': no such file to load -- dispatcher (LoadError) from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_su pport/dependencies.rb:251:in `require' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_su pport/dependencies.rb:236:in `load_dependency' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_su pport/dependencies.rb:251:in `require' from C:/Test_PRJ/redmine-2.0/plugins/redmine_list_duplicate_views/init.r b:2 from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_su pport/dependencies.rb:251:in `require' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_su pport/dependencies.rb:251:in `require' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_su pport/dependencies.rb:236:in `load_dependency' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_su pport/dependencies.rb:251:in `require' from C:/Test_PRJ/redmine-2.0/lib/redmine/plugin.rb:129:in `load' from C:/Test_PRJ/redmine-2.0/lib/redmine/plugin.rb:120:in `each' from C:/Test_PRJ/redmine-2.0/lib/redmine/plugin.rb:120:in `load' from C:/Test_PRJ/redmine-2.0/config/initializers/30-redmine.rb:13 from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_su pport/dependencies.rb:245:in `load' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_su pport/dependencies.rb:245:in `load' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_su pport/dependencies.rb:236:in `load_dependency' from C:/Ruby187/lib/ruby/gems/1.8/gems/activesupport-3.2.6/lib/active_su pport/dependencies.rb:245:in `load' from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/engine.r b:588 from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/engine.r b:587:in `each' from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/engine.r b:587 from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initiali zable.rb:30:in `instance_exec' from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initiali zable.rb:30:in `run' from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initiali zable.rb:55:in `run_initializers' from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initiali zable.rb:54:in `each' from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/initiali zable.rb:54:in `run_initializers' from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/applicat ion.rb:136:in `initialize!' from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/ configurable.rb:30:in `send' from C:/Ruby187/lib/ruby/gems/1.8/gems/railties-3.2.6/lib/rails/railtie/ configurable.rb:30:in `method_missing' from C:/Test_PRJ/redmine-2.0/config/environment.rb:14 from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require' from C:/Ruby187/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' from C:/Test_PRJ/redmine-2.0/config.ru:3 from C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51 :in `instance_eval' from C:/Ruby187/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/builder.rb:51 :in `initialize' from C:/Test_PRJ/redmine-2.0/config.ru:1:in `new' from C:/Test_PRJ/redmine-2.0/config.ru:1
RE: Duplicate views list plugin - Added by Vitaly Klimov over 12 years ago
Steven Wong wrote:
I tested it with redmine 2.0.3, and found something wrong with it. since redmine 2.0.X, is seems not support the diapatcher. There's the error when I start the Redmine.
My bad. I did not update plugin page with new version. I will do it later today. Sorry for inconvenience.
RE: Duplicate views list plugin - Added by Vitaly Klimov over 12 years ago
Plugin updated. Added compatibility with 2.x and couple of undocumented (yet) functions: wipe project with attachments and wipe unused files from storage.
RE: Duplicate views list plugin - Added by Steven Wong over 12 years ago
Nice.
I tested it on Redmine 2.0.3 and it works well.
Thanks so much.
If there's some other features, the plugin would be much better.
feature1. add some icons?
feature2. support more localization.
feature3. add some error alert instead of 500 error.
RE: Duplicate views list plugin - Added by Steven Wong about 12 years ago
Vitaly Kosenko Klimov
it seems not support Redmine 2.1.X, I used redmine 2.1.2 and ruby 1.9.3.
I got 500 error and the error log is :
Started GET "/list_duplicate_views" for 192.168.3.41 at 2012-10-25 11:13:22 +0800 Processing by ListDuplicateViewsController#index as HTML Current user: admin (id=1) Completed 500 Internal Server Error in 22ms TypeError (can't convert Array into String): plugins/redmine_list_duplicate_views/app/controllers/list_duplicate_views_controller.rb:159:in `[]=' plugins/redmine_list_duplicate_views/app/controllers/list_duplicate_views_controller.rb:159:in `block in get_duplicate_views_list' plugins/redmine_list_duplicate_views/app/controllers/list_duplicate_views_controller.rb:158:in `reject!' plugins/redmine_list_duplicate_views/app/controllers/list_duplicate_views_controller.rb:158:in `get_duplicate_views_list' plugins/redmine_list_duplicate_views/app/controllers/list_duplicate_views_controller.rb:16:in `index' actionpack (3.2.8) lib/action_controller/metal/implicit_render.rb:4:in `send_action' actionpack (3.2.8) lib/abstract_controller/base.rb:167:in `process_action' actionpack (3.2.8) lib/action_controller/metal/rendering.rb:10:in `process_action' actionpack (3.2.8) lib/abstract_controller/callbacks.rb:18:in `block in process_action' activesupport (3.2.8) lib/active_support/callbacks.rb:469:in `_run__948235978__process_action__1059328493__callbacks' activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback' activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (3.2.8) lib/abstract_controller/callbacks.rb:17:in `process_action' actionpack (3.2.8) lib/action_controller/metal/rescue.rb:29:in `process_action' actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' activesupport (3.2.8) lib/active_support/notifications.rb:123:in `block in instrument' activesupport (3.2.8) lib/active_support/notifications/instrumenter.rb:20:in `instrument' activesupport (3.2.8) lib/active_support/notifications.rb:123:in `instrument' actionpack (3.2.8) lib/action_controller/metal/instrumentation.rb:29:in `process_action' actionpack (3.2.8) lib/action_controller/metal/params_wrapper.rb:207:in `process_action' activerecord (3.2.8) lib/active_record/railties/controller_runtime.rb:18:in `process_action' actionpack (3.2.8) lib/abstract_controller/base.rb:121:in `process' actionpack (3.2.8) lib/abstract_controller/rendering.rb:45:in `process' actionpack (3.2.8) lib/action_controller/metal.rb:203:in `dispatch' actionpack (3.2.8) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' actionpack (3.2.8) lib/action_controller/metal.rb:246:in `block in action' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `call' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:73:in `dispatch' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:36:in `call' journey (1.0.4) lib/journey/router.rb:68:in `block in call' journey (1.0.4) lib/journey/router.rb:56:in `each' journey (1.0.4) lib/journey/router.rb:56:in `call' actionpack (3.2.8) lib/action_dispatch/routing/route_set.rb:600:in `call' rack-openid (1.3.1) lib/rack/openid.rb:98:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' rack (1.4.1) lib/rack/etag.rb:23:in `call' rack (1.4.1) lib/rack/conditionalget.rb:25:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/head.rb:14:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/params_parser.rb:21:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/flash.rb:242:in `call' rack (1.4.1) lib/rack/session/abstract/id.rb:205:in `context' rack (1.4.1) lib/rack/session/abstract/id.rb:200:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/cookies.rb:339:in `call' activerecord (3.2.8) lib/active_record/query_cache.rb:64:in `call' activerecord (3.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `_run__167065876__call__5240407__callbacks' activesupport (3.2.8) lib/active_support/callbacks.rb:405:in `__run_callback' activesupport (3.2.8) lib/active_support/callbacks.rb:385:in `_run_call_callbacks' activesupport (3.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks' actionpack (3.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/remote_ip.rb:31:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' railties (3.2.8) lib/rails/rack/logger.rb:26:in `call_app' railties (3.2.8) lib/rails/rack/logger.rb:16:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/request_id.rb:22:in `call' rack (1.4.1) lib/rack/methodoverride.rb:21:in `call' rack (1.4.1) lib/rack/runtime.rb:17:in `call' activesupport (3.2.8) lib/active_support/cache/strategy/local_cache.rb:72:in `call' rack (1.4.1) lib/rack/lock.rb:15:in `call' actionpack (3.2.8) lib/action_dispatch/middleware/static.rb:62:in `call' rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward' rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!' rack-cache (1.2) lib/rack/cache/context.rb:51:in `call' railties (3.2.8) lib/rails/engine.rb:479:in `call' railties (3.2.8) lib/rails/application.rb:223:in `call' railties (3.2.8) lib/rails/railtie/configurable.rb:30:in `method_missing' thin (1.5.0) lib/thin/connection.rb:81:in `block in pre_process' thin (1.5.0) lib/thin/connection.rb:79:in `catch' thin (1.5.0) lib/thin/connection.rb:79:in `pre_process' thin (1.5.0) lib/thin/connection.rb:54:in `process' thin (1.5.0) lib/thin/connection.rb:39:in `receive_data' eventmachine (1.0.0) lib/eventmachine.rb:187:in `run_machine' eventmachine (1.0.0) lib/eventmachine.rb:187:in `run' thin (1.5.0) lib/thin/backends/base.rb:63:in `start' thin (1.5.0) lib/thin/server.rb:159:in `start' thin (1.5.0) lib/thin/controllers/controller.rb:86:in `start' thin (1.5.0) lib/thin/runner.rb:187:in `run_command' thin (1.5.0) lib/thin/runner.rb:152:in `run!' thin (1.5.0) bin/thin:6:in `<top (required)>' /usr/local/bin/thin:23:in `load' /usr/local/bin/thin:23:in `<main>'
any solution to fix it? Thanks.
RE: Duplicate views list plugin - Added by Steven Wong about 12 years ago
another Question about 404 error.
Started GET "/batch_remove_projects" for 192.168.3.41 at 2012-10-25 11:16:43 +0800 Processing by ListDuplicateViewsController#batch_remove_projects as HTML Current user: admin (id=1) Missing template, responding with 404 Rendered common/error.html.erb within layouts/base (1.0ms) Rendered plugins/redmine_cut_tag/app/views/hooks/redmine_cut_tag/_includes.html.erb (0.9ms) Rendered plugins/redmine_private_wiki/app/views/hooks/_html_header.html.erb (0.2ms) Rendered plugins/redmine_favourite_projects/app/views/favourite_projects/_favourite_projects_searchbox_partial.html.erb (0.1ms) Rendered plugins/redmine_favourite_projects/app/views/favourite_projects/_update_menu.erb (0.1ms) Rendered plugins/redmine_private_wiki/app/views/hooks/_body_bottom.html.erb (0.1ms) Completed 404 Not Found in 79ms (Views: 35.1ms | ActiveRecord: 2.0ms)
RE: Duplicate views list plugin - Added by Steven Wong about 12 years ago
another 404 error..
Started GET "/clean_up_attachments_folder" for 192.168.3.41 at 2012-10-25 11:17:54 +0800 Processing by ListDuplicateViewsController#clean_up_attachments_folder as HTML Current user: admin (id=1) Missing template, responding with 404 Rendered common/error.html.erb within layouts/base (0.3ms) Rendered plugins/redmine_cut_tag/app/views/hooks/redmine_cut_tag/_includes.html.erb (0.9ms) Rendered plugins/redmine_private_wiki/app/views/hooks/_html_header.html.erb (0.1ms) Rendered plugins/redmine_favourite_projects/app/views/favourite_projects/_favourite_projects_searchbox_partial.html.erb (0.1ms) Rendered plugins/redmine_favourite_projects/app/views/favourite_projects/_update_menu.erb (0.2ms) Rendered plugins/redmine_private_wiki/app/views/hooks/_body_bottom.html.erb (0.1ms) Completed 404 Not Found in 57ms (Views: 18.3ms | ActiveRecord: 1.9ms)