Content
View differences
Updated by Christophe Bliard about 2 years ago
### Steps to reproduce
2 ways to trigger the issue.
the first way:
1. Have progress calculation in work-based mode (Administration > Work packages > Settings)
2. Create a lone work package
3. Set work and remaining work for it
4. In administration > Work packages > Settings, change progress calculation to status-based mode
1. \=> the activity for the work package will show "total remaining work" and "total % complete" updated
the second way:
1. Be already in status-based mode for progress calculation (Administration > Work packages > Settings)
2. Create a lone work package
3. Set work and remaining work for it
4. Set a status to it
5. In administration > Work packages > Statuses, change the % complete of the status to something else
1. \=> the activity for the work package will show "total remaining work" and "total % complete" updated
### What is the buggy behavior?
* Totals should not be computed for non-parent work packages. If a work package does not have any children, it does not have any totals
### What is the expected behavior?
1. Totals should not be computed, so the entries "total remaining work updated" and "total % complete updated" should not be visible.
2. Totals \[Open point\] should totals of all non-parent work packages are be unset in a migration with a meaningful journal entry from system user migration? (in case some users triggered that bug). bug)
### Screenshots and other files
<img class="image_resized op-uc-image op-uc-image_inline" style="width:960px;" src="/api/v3/attachments/101637/content">
In the above screenshot:
* system was in work-based mode, I set work and remaining work on it (first activity item)
* I then switched to status-based mode. System updated progress values and totals (second activity item). totals should not have been updated (bug)
* I then changed work and remaining work to 7h. It removed the totals, which is correct (third activity item)
* I then changed the status % complete from 0% to 60%. System updated progress values and totals (fourth activity item). totals should not have been updated (bug)
### Environment information
**OpenProject installation type**
* [x] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
14.0.0 / pre-14.0.1 : 14.0.1.21bb349abf0d5f3e876598de77392f94ba6c88ad
stage environment, Thu, 02 May 2024 13:44:19 GMT, core [21bb349abf0d5f3e876598de77392f94ba6c88ad](https://github.com/opf/openproject/commits/21bb349abf0d5f3e876598de77392f94ba6c88ad)
2 ways to trigger the issue.
the first way:
1. Have progress calculation in work-based mode (Administration > Work packages > Settings)
2. Create a lone work package
3. Set work and remaining work for it
4. In administration > Work packages > Settings, change progress calculation to status-based mode
1. \=> the activity for the work package will show "total remaining work" and "total % complete" updated
the second way:
1. Be already in status-based mode for progress calculation (Administration > Work packages > Settings)
2. Create a lone work package
3. Set work and remaining work for it
4. Set a status to it
5. In administration > Work packages > Statuses, change the % complete of the status to something else
1. \=> the activity for the work package will show "total remaining work" and "total % complete" updated
### What is the buggy behavior?
* Totals should not be computed for non-parent work packages. If a work package does not have any children, it does not have any totals
### What is the expected behavior?
1. Totals should not be computed, so the entries "total remaining work updated" and "total % complete updated" should not be visible.
2. Totals
### Screenshots and other files
<img class="image_resized op-uc-image op-uc-image_inline" style="width:960px;" src="/api/v3/attachments/101637/content">
In the above screenshot:
* system was in work-based mode, I set work and remaining work on it (first activity item)
* I then switched to status-based mode. System updated progress values and totals (second activity item). totals should not have been updated (bug)
* I then changed work and remaining work to 7h. It removed the totals, which is correct (third activity item)
* I then changed the status % complete from 0% to 60%. System updated progress values and totals (fourth activity item). totals should not have been updated (bug)
### Environment information
**OpenProject installation type**
* [x] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [ ] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version**
14.0.0 / pre-14.0.1 : 14.0.1.21bb349abf0d5f3e876598de77392f94ba6c88ad
stage environment, Thu, 02 May 2024 13:44:19 GMT, core [21bb349abf0d5f3e876598de77392f94ba6c88ad](https://github.com/opf/openproject/commits/21bb349abf0d5f3e876598de77392f94ba6c88ad)