Port of 25226-realtime-pipelines-fe to EE https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/10878