[Bug][Blueprints] Duplicate CircleCI scopes in same connection allowed #7653
Labels
pr-type/bug-fix
This PR fixes a bug
severity/p1
This bug affects functionality or significantly affect ux
type/bug
This issue is a bug
Search before asking
What happened
I had an issue, where I was able to input the same CircleCI sco
pe identifier twice in the
connections
field of the blueprint. This causes the API to throw a 500 request, but the blueprint was still created and ended up in a bad state, where I had to manually delete it and try again.What do you expect to happen
To give me a 400 response telling me that I had a duplicate value in the connections scopes.
How to reproduce
Adding a Blueprint with the something like the following connection plugin:
This will cause the API to throw an error.
Anything else
No response
Version
v1.0.0-rc1
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: