Assigned issue count not updated correctly on project delete

Summary

When a project is deleted the assigned issue count is not updated correctly

Steps to reproduce

  1. Clear all your todos
  2. Create a project
  3. Create an issue
  4. Assign the issue to yourself - note you now have a todo
  5. Delete the project - note you still have a todo count but no todos

What is the current bug behavior?

Assigned issue count shows as 1 or greater when no assigned issues exist

What is the expected correct behavior?

Assigned issue count shows as 0 when no assigned issues exist

Relevant logs and/or screenshots

image

Output of checks

This bug happens on GitLab.com

Results of GitLab environment info

This bug happens on GitLab.com

Results of GitLab application Check

This bug happens on GitLab.com

Possible fixes

Related to previous count issue with todos: https://gitlab.com/gitlab-org/gitlab-ce/issues/23919

Assignee Loading
Time tracking Loading