The event of deleting a time spent record via the time tracking widget UI does not trigger any webhook
Summary
Entering a record in the time tracking widget UI triggers a webhook. But it doesn't do this when deleting a record.
Steps to reproduce
- Create a webhook on a project and check the "Issues events" checkbox
- Go to the issue and add 1h time tracking through the UI widget
- confirm that the webhook executed
- Click the
Time tracking report
link from time tracking widget. - Delete previously entered record of time spent
- confirm that the webhook was not executed this time
Example Project
This happens from 16.9.0
version.
What is the current bug behavior?
Deleting a time spent record in the widget does not trigger any webhooks.
What is the expected correct behavior?
A webhook must be activated when deleting a time spent from the Widget
Relevant logs and/or screenshots
The time tracking widget UI with a spent time already entered:
The Time tracking report where you can delete the spent times:
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
Possible fixes
Edited by Nicolas Moncada