post merge pipeline and environments status
What does this MR do?
EE port: gitlab-org/gitlab-ee!8104
This MR to expose post-merge pipeline and environments status information for the MR widget.
It implements what's described in https://gitlab.com/gitlab-org/gitlab-ce/issues/47799#note_108006884
Changes
-
GET :namespace/merge_requests/:id/ci_environments_status
now supports an optionaltarget
parameters- when
environment_target=merge_commit
it returns the environments created by the merge commit
- when
-
MergeRequest#merge_pipiline
has been introduced, it returns the post mergeCi::Pipeline
-
GET :namespace/merge_requests/:id?serializer=widget
now exposes also themerge_pipeline
Frontend
- Renders post merge pipeline and deploys
- Only polls when merge request is in the
merged
state - Updates deployment component to render different statuses.
Heads up in the screenshots: ignore the pipeline failed status, I was using mocked data.
running | success | failed | |
---|---|---|---|
What are the relevant issue numbers?
Closes #47799 (closed) #32736 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides
Edited by Toon Claes