Ensure `Ci::Pipeline#all_merge_requests` returns a correct merge request list

@ayufan said

all_merge_requests does include current merge request, but if for whatever reason we change the semantic of ref: or source_project: it will stop, maybe we should ensure that condition there is sha IN (?) or merge_request_id=?. It will be silent unnoticed bug. But this as well falls into Finder category.


The following discussion from !23217 (merged) should be addressed:

  • @ayufan started a discussion: (+3 comments)

    Do we miss fix here to #all_merge_requests?

Edited by Shinya Maeda