[PR #2753] [CLOSED] fix: restrict to create collections with the same name #4044

Closed
opened 2026-03-17 01:36:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/2753
Author: @AlexHRodrii
Created: 10/9/2022
Status: Closed

Base: mainHead: bugfix/#2741-collection-names


📝 Commits (1)

  • 9fceeab fix: restrict to create collections with the same name

📊 Changes

1 file changed (+37 additions, -29 deletions)

View changed files

📝 packages/hoppscotch-app/src/components/collections/index.vue (+37 -29)

📄 Description

Closes #2741

Description

Added a condition when the user wants to create or update a collection that verifiy there's no existing collection with the same name. In case that the collection name is invalid a toast is display showing the error information and the collection is not created/updated

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

Demo after applying the bugfix

https://user-images.githubusercontent.com/60890872/194747236-2b590623-e39f-4c69-9dc3-7950c49b3462.mov


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/2753 **Author:** [@AlexHRodrii](https://github.com/AlexHRodrii) **Created:** 10/9/2022 **Status:** ❌ Closed **Base:** `main` ← **Head:** `bugfix/#2741-collection-names` --- ### 📝 Commits (1) - [`9fceeab`](https://github.com/hoppscotch/hoppscotch/commit/9fceeab3ad05507cc9c654ab660e532828dcde50) fix: restrict to create collections with the same name ### 📊 Changes **1 file changed** (+37 additions, -29 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-app/src/components/collections/index.vue` (+37 -29) </details> ### 📄 Description Closes #2741 ### Description Added a condition when the user wants to create or update a collection that verifiy there's no existing collection with the same name. In case that the collection name is invalid a toast is display showing the error information and the collection is not created/updated ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [X] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [X] All the tests have passed ### Additional Information **Demo after applying the bugfix** https://user-images.githubusercontent.com/60890872/194747236-2b590623-e39f-4c69-9dc3-7950c49b3462.mov --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:36:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4044
No description provided.