ottodude125 / redmine_issue_monitoring

Plugin for Redmine which provides graphs analyzing issues.
0 stars 0 forks source link

cannot work well on redmine 2.3.2 #1

Open fengyedou opened 10 years ago

fengyedou commented 10 years ago

If cliicking the issue monitoring, internal error.

ottodude125 commented 9 years ago

@fengyedou... I was just going through my repositories and noticed you left this message about a month ago. I apologize for the delayed response, I'll have to check if there is a setting to get notified when someone comments on one of my repositories. I'm sorry this doesn't work for you. I don't believe I've advertised this as an available plugin on the redmine site although you are welcome to use it. I was reviewing my code and noticed that I somehow failed to push my changes I made months ago. Not sure if it will make a difference but I've since pushed those so the code I am currently running is located here.

I am running this on Redmine 2.5.0, which also is the only one I've tried running it on so I cannot say whether it will be able to run on other versions without changes. I also need to mention that some of the code, especially the "Active by User" views/controllers may rely on a custom category which I have configured my issues to have. Because of this I am not sure if the plugin will be functional without removing those blocks of code. You may need to take a few minutes to comment out anything that may appear to be custom and unrelated to your environment.

My department has roughly 100 projects and 40-80 issues at any given moment. This plugin is a nice little enhancement to give a quick overview of the overall state of open issues letting you view the average age of issues by category(bug, issue, feature), the opened vs closed per week, along with number of issues per status, and lastly number of open issues per user.

I've included several example screenshots from my test environment. This is what you will see if you get it running. When you click on "Issue Monitor" in the main menu you'll be brought to this screen which has four tabs, the first being: image

The second tab is: image

The third tab is: image

I would show a screenshot of the fourth tab but there is company information which cant be shown.

If you need help with anything let me know and if I get a minute I will try to help you out.

fengyedou commented 9 years ago

@ottodude125 , It is very nice of your introduction of this plug-in, I am finding issue monitoring and statistics function in redmine, for analyzing weekly, monthly...and I think it is great to apply your plug-in as the pictures above, I download the latest commit and install, and the same 500 error... I put the log here, which is from production.log.

I donot know if you have time to reproduce this issue and debug, my env. is Bitnami redmine 2.3.2. I think it maybe version issue, but we cannot upgrade to higher redmine, for the database is changed much from redmine 2.4, and many plug-ins only support 2.3.x now. If you can work more for this plug-in and make it supports 2.3.x redmine, it will be great. //////////////////////////////////////////////////////log////////////////////////////////////////////// Started GET "/redmine/projects/xxx/settings" for xxx at 2014-12-09 08:46:40 +0800 Processing by ProjectsController#settings as HTML Parameters: {"id"=>"xxx"} Current user: xxx (id=1) Rendered plugins/redmine_time_entry_limit/app/views/projects/_enforce_issue_id.html.erb (0.0ms) Rendered projects/_form.html.erb (93.6ms) Rendered projects/_edit.html.erb (124.8ms) Rendered projects/settings/_modules.html.erb (0.0ms) Rendered projects/settings/_members.html.erb (78.0ms) Rendered plugins/scrum/app/views/projects/settings/_sprints.html.erb (109.2ms) Rendered projects/settings/_versions.html.erb (31.2ms) Rendered projects/settings/_issue_categories.html.erb (15.6ms) Rendered projects/settings/_wiki.html.erb (0.0ms) Rendered projects/settings/_repositories.html.erb (0.0ms) Rendered projects/settings/_boards.html.erb (0.0ms) Rendered projects/settings/_activities.html.erb (15.6ms) Rendered plugins/redmine_banner/app/views/banner/_show.html.erb (15.6ms) Rendered plugins/redmine_code_review/app/views/code_review_settings/_filters.html.erb (0.0ms) Rendered plugins/redmine_code_review/app/views/code_review_settings/_show.html.erb (109.2ms) Rendered plugins/redmine_issue_templates/app/views/issue_templates_settings/_show.html.erb (78.0ms) Rendered common/_tabs.html.erb (1029.6ms) Rendered projects/settings.html.erb within layouts/base (1060.8ms) Rendered plugins/redmine_code_review/app/views/code_review/_html_header.html.erb (0.0ms) Rendered plugins/redmine_create_wiki_page/app/views/create_wiki_page/_init_create_wiki_page.erb (0.0ms) Rendered inline template (0.0ms) Rendered plugins/scrum/app/views/scrum_hooks/_head.html.erb (0.0ms) Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_headers.html.erb (0.0ms) Rendered plugins/redmine_banner/app/views/banner/_project_body_bottom.html.erb (0.0ms) Rendered plugins/sidebar_hide/app/views/sidebar/_hideButton_partial.html.erb (15.6ms) Rendered plugins/redmine_banner/app/views/banner/_body_bottom.html.erb (15.6ms) Rendered plugins/redmine_banner/app/views/banner/_after_top_menu.html.erb (15.6ms) Rendered plugins/redmine_code_review/app/views/code_review/_body_bottom.html.erb (0.0ms) Rendered plugins/clipboard_image_paste/app/views/clipboard_image_paste/_add_form.html.erb (0.0ms) Completed 200 OK in 1310ms (Views: 1201.2ms | ActiveRecord: 93.6ms) Started GET "/redmine/history_by_tracker" for xxx at 2014-12-09 08:47:03 +0800 Processing by HistoryByTrackerController#index as HTML Current user: xxx(id=1) Completed 500 Internal Server Error in 0ms

NoMethodError (undefined method id' for nil:NilClass): plugins/redmine_issue_monitoring/app/controllers/history_by_tracker_controller.rb:27:inindex' actionpack (3.2.13) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.2.13) lib/abstract_controller/base.rb:167:inprocess_action' actionpack (3.2.13) lib/action_controller/metal/rendering.rb:10:in process_action' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:18:inblock in process_action' activesupport (3.2.13) lib/active_support/callbacks.rb:458:in _run__3683673__process_action__755766746__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in _run_process_action_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.13) lib/abstract_controller/callbacks.rb:17:in process_action' actionpack (3.2.13) lib/action_controller/metal/rescue.rb:29:inprocess_action' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:30:in block in process_action' activesupport (3.2.13) lib/active_support/notifications.rb:123:inblock in instrument' activesupport (3.2.13) lib/active_support/notifications/instrumenter.rb:20:in instrument' activesupport (3.2.13) lib/active_support/notifications.rb:123:ininstrument' actionpack (3.2.13) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.2.13) lib/action_controller/metal/params_wrapper.rb:207:inprocess_action' activerecord (3.2.13) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (3.2.13) lib/abstract_controller/base.rb:121:inprocess' actionpack (3.2.13) lib/abstract_controller/rendering.rb:45:in process' actionpack (3.2.13) lib/action_controller/metal.rb:203:indispatch' actionpack (3.2.13) lib/action_controller/metal/rack_delegation.rb:14:in dispatch' actionpack (3.2.13) lib/action_controller/metal.rb:246:inblock in action' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:in call' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:73:indispatch' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:36:in call' journey (1.0.4) lib/journey/router.rb:68:inblock in call' journey (1.0.4) lib/journey/router.rb:56:in each' journey (1.0.4) lib/journey/router.rb:56:incall' actionpack (3.2.13) lib/action_dispatch/routing/route_set.rb:612:in call' rack-openid (1.3.1) lib/rack/openid.rb:98:incall' actionpack (3.2.13) lib/action_dispatch/middleware/best_standards_support.rb:17:in call' rack (1.4.5) lib/rack/etag.rb:23:incall' rack (1.4.5) lib/rack/conditionalget.rb:25:in call' actionpack (3.2.13) lib/action_dispatch/middleware/head.rb:14:incall' actionpack (3.2.13) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.2.13) lib/action_dispatch/middleware/flash.rb:242:incall' rack (1.4.5) lib/rack/session/abstract/id.rb:210:in context' rack (1.4.5) lib/rack/session/abstract/id.rb:205:incall' actionpack (3.2.13) lib/action_dispatch/middleware/cookies.rb:341:in call' activerecord (3.2.13) lib/active_record/query_cache.rb:64:incall' activerecord (3.2.13) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in call' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:28:inblock in call' activesupport (3.2.13) lib/active_support/callbacks.rb:405:in _run__496543237__call__522335924__callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:405:inrun_callback' activesupport (3.2.13) lib/active_support/callbacks.rb:385:in _run_call_callbacks' activesupport (3.2.13) lib/active_support/callbacks.rb:81:inrun_callbacks' actionpack (3.2.13) lib/action_dispatch/middleware/callbacks.rb:27:in call' actionpack (3.2.13) lib/action_dispatch/middleware/remote_ip.rb:31:incall' actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:16:in call' actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:incall' railties (3.2.13) lib/rails/rack/logger.rb:32:in call_app' railties (3.2.13) lib/rails/rack/logger.rb:16:inblock in call' activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in tagged' railties (3.2.13) lib/rails/rack/logger.rb:16:incall' actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in call' rack (1.4.5) lib/rack/methodoverride.rb:21:incall' rack (1.4.5) lib/rack/runtime.rb:17:in call' activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:incall' rack (1.4.5) lib/rack/lock.rb:15:in call' actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:incall' rack-cache (1.2) lib/rack/cache/context.rb:136:in forward' rack-cache (1.2) lib/rack/cache/context.rb:245:infetch' rack-cache (1.2) lib/rack/cache/context.rb:185:in lookup' rack-cache (1.2) lib/rack/cache/context.rb:66:incall!' rack-cache (1.2) lib/rack/cache/context.rb:51:in call' railties (3.2.13) lib/rails/engine.rb:479:incall' railties (3.2.13) lib/rails/application.rb:223:in call' railties (3.2.13) lib/rails/railtie/configurable.rb:30:inmethod_missing' rack (1.4.5) lib/rack/urlmap.rb:64:in block in call' rack (1.4.5) lib/rack/urlmap.rb:49:ineach' rack (1.4.5) lib/rack/urlmap.rb:49:in call' thin (1.3.1) lib/thin/connection.rb:80:inblock in pre_process' thin (1.3.1) lib/thin/connection.rb:78:in catch' thin (1.3.1) lib/thin/connection.rb:78:inpre_process' thin (1.3.1) lib/thin/connection.rb:53:in process' thin (1.3.1) lib/thin/connection.rb:38:inreceive_data' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:in run_machine' eventmachine-1.0.0-x86 (mingw32) lib/eventmachine.rb:187:inrun' thin (1.3.1) lib/thin/backends/base.rb:61:in start' thin (1.3.1) lib/thin/server.rb:159:instart' thin (1.3.1) lib/thin/controllers/controller.rb:86:in start' thin (1.3.1) lib/thin/runner.rb:185:inrun_command' thin (1.3.1) lib/thin/runner.rb:151:in run!' thin (1.3.1) bin/thin:6:in<top (required)>' bin/thin:16:in load' bin/thin:16:in

'

ottodude125 commented 9 years ago

@fengyedou

The error says: NoMethodError (undefined method id' for nil:NilClass): plugins/redmine_issue_monitoring/app/controllers/history_by_tracker_controller.rb:27:inindex'

Looking at that file line 27 is: feature = Tracker.find_by_name("Feature").id

So questions: 1) Does your db have a "trackers" table? 2) Does that "trackers" table have a column titled "name" 3) Do you have an entry in that table whose "name" is set to "Feature".