Multiple "times spent" actions not applied correctly, misleading alert
Summary
When using multiple /spent
quick actions, only the last one gets applied, but the success alert reports all of them.
Steps to reproduce
-
Open an issue.
-
Spend some initial time (
/spend 20m
). -
Realize you wanted to spend 30 minutes, so to correct this, you'll add another comment:
/spend -20m /spend 30m
-
Submit the comment.
-
You'll see the following note and alert appear:
-
In the sidebar, the -20m is not registered:
Example Project
https://gitlab.com/dmke/simple-password-gen/-/issues/7
What is the current bug behavior?
Multiple /spend
actions are not accumulated correctly.
What is the expected correct behavior?
Either:
- accumulate the time spent, or
- apply them separately, or
- add documentation stating that multiple times spent are not supported.
In the latter case, the alert needs to be fixed.
Relevant logs and/or screenshots
See above.
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Observed in GitLab 13.3, both self-hosted and on GitLab.com
Results of GitLab application Check
Irrelevant.
Possible fixes
Unknown.
Edited by Dominik Menke