`only: merge_request` pipelines are not shown in Merge Requests

Summary

only: merge_request pipelines are not shown in Merge Requests

Steps to reproduce

  • Open a Merge request containing a job with a only: merge_request rule in it.
  • Observe single merge request screen vs Pipelines screen

Example Project

(If possible, please create an example project here on GitLab.com that exhibits the problematic behavior, and link to it here in the bug report)

(If you are using an older version of GitLab, this will also determine whether the bug is fixed in a more recent version)

What is the current bug behavior?

See following images. A detached pipeline runs for the only: merge_request jobs, but it's not shown in the actual Merge Request. This is particularly problematic having a passing pipeline status as a condition to merging.

Note: the only job showing in the Merge request is an external Netlify job.

What is the expected correct behavior?

To see only: merge_request jobs to appear in Merge Requests.

Relevant logs and/or screenshots

Screenshot showing Merge Request screen Screen_Shot_2019-07-20_at_8.29.40_PM

Screenshot showing Pipelines screen Screen_Shot_2019-07-20_at_8.30.05_PM

Output of checks

This bug happens on GitLab.com

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Assignee Loading
Time tracking Loading