You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first "React Developer 2" role actually not exists in database.
I explained it here: #290 (comment)
Now after the above update, we actually have a "React Developer 2" Role.
When I try to update another Role's name to "React Developer 2" I get the error now:
@nikolay83
The undeleted record issue #290 caused this particular issue.
Our update endpoint follow the same not allow duplicate name restriction with create endpoint.
And it's not possible to create a new role with duplicate name because Role model has a uniqe name index.
Steps
Call update end point for a role by changing the role name to another existing role name
Current behavior
Update happens
Expected behavior
Should not allow duplicate role names(create end point has this restriction)
The text was updated successfully, but these errors were encountered: