bug: Unhandled exception when loading menu in a branch if it exists in main
#5473
Labels
group/backend
Issue related to the backend (API Server, Git Agent)
type/bug
Something isn't working as expected
Milestone
Component
API Server / GraphQL
Infrahub version
1.1.2
Current Behavior
After loading a menu file in
main
I am trying to load it in a branch created beforehand.When loading it in the branch, I got an error with infrahubctl :
['CoreMenuItemUpsert'] Violates uniqueness constraint 'namespace-name' at namespace, Violates uniqueness constraint 'namespace-name' at name
and see this in the servers logs :
Expected Behavior
Exception gracefully handled in the server, and reported
Steps to Reproduce
test
branch withinfrahubctl branch create test
infrahubctl menu load models/base_menu.yml
infrahubctl menu load models/base_menu.yml --branch test
Additional Information
No response
The text was updated successfully, but these errors were encountered: