Todo not created when changing checklist item and adding a mention
A bit of an edge case, mentioned in #393910 (comment 1302586899)
We're relying on https://gitlab.com/gitlab-org/gitlab/blob/master/app/services/todo_service.rb#L304-L304
When adding a new todo for a mention, we use https://gitlab.com/gitlab-org/gitlab/blob/master/app/services/todo_service.rb#L304-L304
return if toggling_tasks?(issuable)
That method will detect if any tasks have been checked/unchecked. But this can happen when you're adding a new mention. For example, if I start out with a description of
- [ ] item one
- [ ] item two
and then change to
- [x] item one
- [ ] item two
@verona you should take a look at this
a todo will not be created for Verona. If those tasks were just a simple list, they would have.