Project Approvals Rules are not unique
Summary
Project Approval Rules are not unique can can be created with identical names and/or approvers.
Steps to reproduce
- Create a new project Approval Rule
- Create a second project Approval Rule with an identical name and permission set
- Witness!
What is the current bug behavior?
Multiple approval rules can be created with the same name and behavior
What is the expected correct behavior?
Attempts to create a new group that has the same name as an existing group should fail with a good explanation. Attempts to rename a group that would introduce a collision should fail with a good explanation. Deleting a group and then renaming another group to have the name of the now deleted group should succeed.
Relevant logs and/or screenshots
Possible fixes
Add uniqueness constraint on ApprovalProjectRule name attribute
Edited by Alex Kalderimis
