Document that we only support 1 pending Todo per object and that we keep the oldest one
Currently, we only support one Todo per object (Issue, MR, etc..) per user. Support for multiple Todos are being discussed in #28355.
Steps to reproduce
This is caused by the code we have in TodoService
:
def create_todos(users, attributes)
Array(users).map do |user|
next if pending_todos(user, attributes).exists?
Edited by Heinrich Lee Yu