usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.6k stars 1.27k forks source link

feat: add validation to prevent duplicate global environment names (fixes: #3449) #3450

Closed Pragadesh-45 closed 1 day ago

Pragadesh-45 commented 1 week ago

fixes: #3449

Description

This PR implements logic to check for the existence of duplicate names under global environments to prevent name conflicts.

Contribution Checklist:

Before:

https://github.com/user-attachments/assets/12d17ff2-9cdd-4e18-9fb0-57367ff2df31

After:

https://github.com/user-attachments/assets/f3ee88fe-eff9-4165-8fe6-fbfbd78d6f5f