プロジェクト

全般

プロフィール

Vote #66917

完了

Done ratio can not revert to 0% if status is used for done ratio

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

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

100%

予定工数:
category_id:
2
version_id:
24
issue_org_id:
5170
author_id:
11874
assigned_to_id:
5
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

I use issue statuses to calculate done ratio of issues, and set the done ratio of "New" to 0%, that of "Assigned" to 30%.
I changed the status of an issue from "New" to "Assigned", so the done ratio is changed from 0% to 30%.
After that I changed the status of the issue to "New", but the done ratio did not revert to 0%(stayed to 30%).
So I wrote a patch to fix the bug.

Regards


journals

Eric,

Can you take a look at this issue? Isn't this tested yet?
--------------------------------------------------------------------------------
I completed the patch with some tests, thanks Yuki for finding this. The commit is here: http://github.com/thegcat/redmine/commit/fc58994174b2206da0ce25e0321dd96dda62a366

I also slightly changed one of the tests to really test @Issue#update_done_ratio_from_issue_status@, for which the comment (source:/trunk/app/models/issue.rb#L326) states:

> Set the done_ratio using the status if that setting is set. This will keep the done_ratios even if the user turns off the setting later
--------------------------------------------------------------------------------
Applied in r4186. Thanks for the bug report and patch.
--------------------------------------------------------------------------------
Merged into 1.0-stable
--------------------------------------------------------------------------------


related_issues

duplicates,Closed,6310,done ratio is not correct in one of the situations

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

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

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

いいね!0
いいね!0