Project

General

Profile

Actions

Defect #24457

closed

Progress of version should be calculated the same way as parent tasks

Defect #24457: Progress of version should be calculated the same way as parent tasks

Added by C-O L about 10 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
Roadmap
Target version:
Resolution:
Fixed
Affected version:

Description

The progress of a version should be calculated the same ways as the progress of parent tasks are calculated in #23511.


Files


Related issues 2 (0 open — 2 closed)

Related to Redmine - Defect #23511: Progress of parent task should be calculated using total estimated hours of childrenClosedJean-Philippe LangActions
Related to Redmine - Defect #4682: Completed version with wrong progress bar statusClosedMarius BĂLTEANUActions

Updated by Toshi MARUYAMA about 10 years ago Actions #1

  • Tracker changed from Defect to Feature
  • Description updated (diff)
  • Category set to Roadmap

Updated by Toshi MARUYAMA about 10 years ago Actions #2

  • Related to Defect #23511: Progress of parent task should be calculated using total estimated hours of children added

Updated by C-O L about 10 years ago Actions #3

The progress for version is not calculated correctly.
It only uses the estimated time for issues in the version so if mixing issues with an estimated time >0.0h and issues without an estimated time then the issues without an estimated time is not contributing to the progress at all.

It should also use the total_estimated_time instead of just estimated_time, this will make the progress correct if the parent is in the version but not the children.

I've attached a fix that shows what I had in mind.

Updated by Toshi MARUYAMA about 10 years ago Actions #4

  • Tracker changed from Feature to Defect

Updated by Toshi MARUYAMA about 10 years ago Actions #5

Could you add tests?
source:trunk/test/unit/version_test.rb@15993#L80

Updated by C-O L about 10 years ago Actions #6

I'll see if I can squeeze in some time for this in the near future.

Updated by Marius BĂLTEANU over 7 years ago Actions #7

  • Assignee set to Marius BĂLTEANU

Updated by Marius BĂLTEANU over 7 years ago Actions #8

  • Related to Defect #4682: Completed version with wrong progress bar status added

Updated by Marius BĂLTEANU over 7 years ago Actions #9

I've updated the patch posted by C-O-L and added to it a test posted by Etienne some years ago to #4682. I can confirm that this patch fixes the related issue (#4682), but I'm not sure about the defect reported here.

From my point of view, we should take into account the total estimated hours (as the patch proposes), but I'm not sure that issues estimated at 0 hours should be treated in the same way as the issues without estimated hours.
Also, the patch generates quite a lot of queries.

I'm assigning this to 4.1.0 to clarify at least the expected behaviour. I think it could be an important fix.

Updated by Go MAEDA about 7 years ago Actions #10

  • Target version changed from 4.1.0 to 4.2.0

Updated by Marius BĂLTEANU over 5 years ago Actions #11

  • Target version changed from 4.2.0 to 5.0.0

Updated by Marius BĂLTEANU over 4 years ago Actions #12

  • Target version changed from 5.0.0 to 5.1.0

Updated by Kamil . almost 4 years ago Actions #13

@Jean-Philippe, since you are finally working on calculating progress - maybe it'll be a good idea to take also this issue into account: #6975? (since Issue Done Ratio Both doesn't seem to be supporting new versions of Redmine anymore)

Kind regards

Updated by Go MAEDA about 3 years ago Actions #14

  • Target version changed from 5.1.0 to 6.0.0

Updated by Marius BĂLTEANU over 2 years ago Actions #15

  • Status changed from New to Closed
  • Assignee changed from Jean-Philippe Lang to Marius BĂLTEANU
  • Resolution set to Fixed

This is a very old issue and I've committed the fix from my previous patch in order to have the same behaviour from parent task. Regarding the difference between issues without estimated time and issues with estimated time 0, we can track this change in another ticket if it's desired.

Actions

Also available in: PDF Atom