Progress of version should be calculated the same way as parent tasks
The progress of a version should be calculated the same ways as the progress of parent tasks are calculated in #23511.
- File done_ratio_for_version.diff added
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.