[Backend] Add check for fewer than two approvals
Description
Whenever the merge request approval setting is updated, check if the sum of approvals_required is at least equal to two. This can be done by project.approval_rules.pluck(:approvals_required).sum
. Create or update the row in project_compliance_standards_adherence
table and set the status to 'success' or 'fail'.
Edited by Huzaifa Iftikhar