Count merged merge requests using approval rules
What does this MR do and why?
Implements service ping for Count merged merge requests using approval rules monthly.
How to set up and validate locally
- Create Approval Rules for a project by going in Project -> Settings -> Merge request Settings -> Approval rules
- Create MR and merge it
- run rails console and run below snippet
payload = ServicePing::BuildPayload.new.execute
puts payload["usage_activity_by_stage_monthly"]["govern"]["merged_merge_requests_using_approval_rules_distinct"]
- it should have correct data.
- You can also enter fake data in database and check if data generated is corrected.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #382739 (closed)
Edited by Harsimar Sandhu