项目

一般

简介

插件 » Redmine Estimates 工时预估与审批插件

Redmine Estimates

有多种方法可以计划项目的预期工时或项目预期成本,例如PERT、拇指原则等等。每个团队也会根据自身的业务特点作出相应的调整 ...

发布于: https://github.com/nmikhno/redmine_estimates
兼容于: Redmine 5.0.*,  4.1.*,  4.0.*,  3.4.*,  3.3.*,  3.2.*,  3.1.*,  3.0.*,  2.6.*,  2.5.*,  2.4.*

最新版本: 1.0_2 更新日期: 2023-06-07 10:23

评论

添加评论

匿名用户超过一年 之前添加

能不能支持一下5.0+版本

redmineplugins.cn Admin超过一年 之前添加

1.0_2现在可以支持redmine5了。

redmineplugins.cn Admin超过 3 年 之前添加

@zhou rongxuan 这里不方便跟踪,放到这里了 https://redmineplugins.cn/issues/202

zhou rongxuan超过 3 年 之前添加

使用了我们“Redmine Estimates 工时预估与审批插件”这个插件,发现了一个问题,请求支援:

在启用“估算工时”功能时,页面报错500,以下是报错后出现的log

Processing by IssuesController#index as HTML
Parameters: {“utf8"⇒“✓“, “set_filter"⇒“1”, “sort"⇒“id:desc”, “f"⇒[“status_id”, “tracker_id”, “”], “op"⇒{“status_id"⇒“o”, “tracker_id"⇒“=“}, “v"⇒{“tracker_id"⇒[“1”]}, “c"⇒[“project”, “tracker”, “priority”, “subject”, “assigned_to”, “status”, “done_ratio”, “due_date”, “last_updated_by”, “updated_on”, “total_spent_hours”], “group_by"⇒“”, “t"⇒[“estimated_hours”, “total_estimate_hours”, “spent_hours”, “”], “project_id"⇒“n_0006”}
Current user: Captain.Zhou (id=5)
Rendering issues/index.html.erb within layouts/base
Rendered queries/_filters.html.erb (11.7ms)
Rendered queries/_columns.html.erb (2.2ms)
Rendered queries/_query_form.html.erb (17.5ms)
Rendered issues/index.html.erb within layouts/base (68.3ms)
Completed 500 Internal Server Error in 120ms (ActiveRecord: 25.6ms)

ActionView::Template::Error (undefined method `total_for_total_estimate_hours’ for #<IssueQuery:0x00007f1c58a69bb0>
Did you mean? total_for_estimated_hours):
28: <% if @issues.empty? >
29: <p class="nodata"><
= l(:label_no_data) ></p>
30: <
else >
31: <
= render_query_totals(@query) >
32: <
= render :partial ⇒ 'issues/list’, :locals ⇒ {:issues ⇒ @issues, :query ⇒ @query} >
33: <span class="pagination"><
= pagination_links_full @issue_pages, @issue_count ></span>
34: <
end %>

请求支援,以下是我系统的配置信息
系统信息: Linux 10-10-1-158 3.10.0-1160.15.2.el7.x86_64 #1 SMP Wed Feb 3 15:06:38 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Uptime: 46 天

Environment:
Redmine version 4.1.1.stable
Ruby version 2.6.7-p197 (2021-04-05) [x86_64-linux]
Rails version 5.2.4.2
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
SCM:
Subversion 1.7.14
Mercurial 2.6.2
Bazaar 2.5.1
Git 1.8.3.1
Filesystem
Redmine plugins:
additionals 3.0.3-master
custom_tables 1.0.6
projects_tree_view 0.0.9
quick_view 0.3.0_
redmine_activity_report 1.2.10
redmine_agile 1.6.0
redmine_all_thumbnails 1.0.5
redmine_apijs 6.6.0
redmine_banner 0.3.4
redmine_bootstrap_kit 0.2.5
redmine_checklists 3.1.18
redmine_code_review 1.0.0_
redmine_dashboard 2.7.1
redmine_drive 1.1.0
redmine_estimates 1.0_1
redmine_favorite_projects 2.1.1
redmine_hearts 1.0.5
redmine_image_clipboard_paste 3.3.0
redmine_importer 1.2.2
redmine_issue_dynamic_edit 0.7.2
redmine_issue_evm 5.5.2
redmine_issue_templates 1.1.0
redmine_jenkins 2.0.0
redmine_knowledgebase 4.1.1_
redmine_lightbox2 0.5.1
redmine_logs 0.2.0
redmine_mentions 1.0.0
redmine_mermaid_macro 1.0.0
redmine_more_previews 2.0.0
redmine_my_page_paginations 1.0.2
redmine_percent_done 1.1.0
redmine_preview_inline 1.0.3
redmine_questions 1.0.2
redmine_reformat 0.6.1
redmine_resources 1.0.4
redmine_searchable_selectbox 0.1.5
redmine_whining 0.0.4_
redmine_work_time 0.4.1
redmine_zenedit 2.0.0
redmine_zxcvbn 1.0.0
redmineup_tags 2.0.8
view_customize 2.8.1
westaco_versions 0.0.3

Chen Snowman大约 4 年 之前添加

@匿名用户 你试过了吗?在4.1上安装报什么错误?

匿名用户大约 4 年 之前添加

后续可以升级到兼容4.1吗?

redmineplugins.cn Admin将近 5 年 之前添加

报错是因为插件与redmine 4.1不兼容,因为redmine4基于rails5了

匿名用户将近 5 年 之前添加

4.1

rake aborted!
NoMethodError: undefined method `to_prepare’ for ActionDispatch::Callbacks:Class
Did you mean? to_param
/home/redmine/redmine/plugins/redmine_estimates/init.rb:20:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.5.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require’
/home/redmine/redmine/lib/redmine/plugin.rb:181:in `block in load’
/home/redmine/redmine/lib/redmine/plugin.rb:172:in `each’
/home/redmine/redmine/lib/redmine/plugin.rb:172:in `load’
/home/redmine/redmine/config/initializers/30-redmine.rb:20:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:285:in `load’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:285:in `block in load’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:285:in `load’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/engine.rb:663:in `block in load_config_initializer’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/notifications.rb:170:in `instrument’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/engine.rb:662:in `load_config_initializer’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/engine.rb:620:in `block (2 levels) in <class:Engine>'
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/engine.rb:619:in `each’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/engine.rb:619:in `block in <class:Engine>'
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/initializable.rb:32:in `instance_exec’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/initializable.rb:32:in `run’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/initializable.rb:61:in `block in run_initializers’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/initializable.rb:50:in `each’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/initializable.rb:50:in `tsort_each_child’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/initializable.rb:60:in `run_initializers’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/application.rb:361:in `initialize!'
/home/redmine/redmine/config/environment.rb:16:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.5.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `block in require’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:257:in `load_dependency’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/activesupport-5.2.4.1/lib/active_support/dependencies.rb:291:in `require’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/application.rb:337:in `require_environment!'
/home/redmine/.rvm/gems/ruby-2.5.1/gems/railties-5.2.4.1/lib/rails/application.rb:520:in `block in run_tasks_blocks’
/home/redmine/.rvm/gems/ruby-2.5.1/gems/rake-13.0.1/exe/rake:27:in `<top (required)>'
/home/redmine/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `eval’
/home/redmine/.rvm/gems/ruby-2.5.1/bin/ruby_executable_hooks:24:in `<main>'
Tasks: TOP ⇒ redmine:plugins:migrate ⇒ environment
(See full trace by running task with --trace)