プロジェクト

全般

プロフィール

Vote #80913

完了

Done ratio of a parent issue may be shown as 99% even though all subtasks are completed

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Issues_2
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
2
version_id:
161
issue_org_id:
33576
author_id:
332
assigned_to_id:
332
comments:
8
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
99
ステータス-->[Closed]

説明

Due to a rounding error at source:tags/4.1.1/app/models/issue.rb#L1717, a parent task may show 99% done even when all subtasks are 100% done.

!{width: 846px; border: 1px solid grey;}.clipboard-202006101529-abpb8.png!

irb(main):001:0> 1610 / 16.1
=> 99.99999999999999

Steps to reproduce:

  1. Set "% Done" setting (Administration > Settings > Issue tracking) to "Calculated from subtasks"
  2. Create a parent task.
  3. Create a subtask 1 with 10.0 estimated hours and 100% done ratio
  4. Create a subtask 2 with 6.1 estimated hours and 100% done ratio
  5. Now the done ratio of the parent task shows 99% instead of 100%

journals

--------------------------------------------------------------------------------
Attaching a patch that fixes the issue.
--------------------------------------------------------------------------------
Updated the patch not to use Float in the calculation process of a derived done ratio.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Setting the target version to 4.0.8.
--------------------------------------------------------------------------------
Committed the patch.
--------------------------------------------------------------------------------
There are also other issues in Done ration calculation #21449
--------------------------------------------------------------------------------


related_issues

relates,Closed,27848,The progress exceeding 99.5% is displayed as 100%

Admin Redmine さんが約4年前に更新

  • カテゴリIssues_2 にセット
  • 対象バージョン4.0.8_161 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0