Trigger mergeRequestApprovalStateUpdated subscription when approval is given, revoked or reset
Problem to solve
The merge request approval widget shows different state when:
- MR is approved
- MR is was unapproved
- All approvals of MR was reset (e.g. reset on push)
Whenever these scenarios happen, we want to update the approval widget in real-time to show updated state.
Proposal
Trigger the mergeRequestApprovalStateUpdated
when the scenarios above occurs so frontend will be able to show the updated merge status on merge widget.
We can trigger the subscription in MergeRequests::ApprovalService
, MergeRequests::RemoveApprovalService
and MergeRequests::BaseService#reset_approvals
.
This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.