Remove deprecated Approver and ApproverGroup models
What does this MR do and why?
In this MR, after we have removed all reference and usage to both models in application codebase, we mainly focus on,
- Dropping deprecated
ApproverandApproverGroupmodels, - Removing associations from
ProjectandMergeRequestto both models
Along with this purpose, we also make some below changes.
- Remove corresponding test factories
- Update unit testings. Some direct related; some just legacy and removed
- Update rubocop todo for deleted file reference
- One doc example updated
References
Issue - Remove Approver and ApproverGroup models (#566494)
Screenshots or screen recordings
Created one MR locally, and requested two approvals, and verified some basic functionalities.
Everything looks as expected.
The auto-merging does not work, and I think it is because I do not have some workers setup yet. Merge immediately seems to be working fine as expected.
How to set up and validate locally
Not sure there would be bullet points for verifying.
The main area being impacted would be approvers and approval rules. We should try to create a MR and assign some approval rules, and see how it behaves.
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.


