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

  1. Create a new project Approval Rule
  2. Create a second project Approval Rule with an identical name and permission set
  3. 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

Image_2019-05-15_at_14.25.17

Possible fixes

Add uniqueness constraint on ApprovalProjectRule name attribute

Edited May 15, 2019 by Alex Kalderimis
Assignee Loading
Time tracking Loading