Remove logic to auto create any_approver rules in approval rule API
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Our create service converts the rule to an any_approver rule if no user or groups are passed.
This behavior feels confusing. I'm proposing we modify this logic so users have to explicitly pass the rule type if they want an any_approver rule.
This will remove the logic that checks if any users or groups were passed and then converts it into an any_approver rule reducing complexity and technical debt.
This should also modify the documentation.
Edited by 🤖 GitLab Bot 🤖