[GH-ISSUE #2741] [bug]: Identical (Non-Unique) collection names are allowed #889

Closed
opened 2026-03-16 17:34:37 +03:00 by kerem · 2 comments
Owner

Originally created by @Pranav-yadav on GitHub (Oct 5, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2741

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When you create a new collection in under the API tabs (REST/GraphQL/Realtime), app's current logic doesn't checks if the same collection already exists.
As devs/testers/humans usually tend to use the similar names often, which could cause lot of confusions later, when they need to find the exact collection in hurry or while in HotFix mode :)

Find the attached ss if needed...

PS: You can assign this bug to me once confirmed, I'll try to fix it as part of #hacktoberfest22 as well as just because I like everything open source :)

Screenshot

Screenshot of: [bug]: Identical (Non-Unique) collection names are allowed

Steps to reproduce

  1. Go to https://hoppscotch.io
  2. Click on + icon btn to create/add new collection
  3. Provide the unique name and click save/create
  4. Repeat step 2
  5. This time also provide the same name that you used in step 3
  6. You're able to create multiple collections having same names

Environment

Production

Version

Cloud

Originally created by @Pranav-yadav on GitHub (Oct 5, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2741 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When you create a new collection in under the API tabs (REST/GraphQL/Realtime), app's current logic **doesn't** checks if the same collection already exists. As devs/testers/humans usually tend to use the similar names often, which could cause lot of confusions later, when they need to find the exact collection in hurry or while in HotFix mode :) Find the attached ss if needed... PS: You can assign this bug to me once confirmed, I'll try to fix it as part of #hacktoberfest22 as well as just because I like everything open source :) <details> <summary><h3>Screenshot</h3></summary> <img src="https://user-images.githubusercontent.com/55224033/194127663-3e608682-ec89-4445-8ad6-ca6103d9a876.png" alt="Screenshot of: [bug]: Identical (Non-Unique) collection names are allowed"> </details> ### Steps to reproduce 1. Go to [https://hoppscotch.io](https://hoppscotch.io/) 2. Click on + icon btn to create/add new collection 3. Provide the unique name and click save/create 4. Repeat step 2 5. This time also provide the **same name** that you used in step 3 6. You're able to create multiple collections having same names ### Environment Production ### Version Cloud
kerem 2026-03-16 17:34:37 +03:00
Author
Owner

@AlexHRodrii commented on GitHub (Oct 8, 2022):

Can I work on this issue?

Thanks in advance

<!-- gh-comment-id:1272320118 --> @AlexHRodrii commented on GitHub (Oct 8, 2022): Can I work on this issue? Thanks in advance
Author
Owner

@liyasthomas commented on GitHub (Oct 11, 2022):

Restricting users from creating collections with the same name is not a feature addition.

Since our current users might've created collections with similar names before, introducing this restriction for new users will be an anti-pattern. For those who think having duplicated collection names is an issue, they can always rename the duplicated collections to something unique. And for those who'd like to have duplicated collection names, we should keep this UX for now.

<!-- gh-comment-id:1274097584 --> @liyasthomas commented on GitHub (Oct 11, 2022): Restricting users from creating collections with the same name is not a feature addition. Since our current users might've created collections with similar names before, introducing this restriction for new users will be an anti-pattern. For those who think having duplicated collection names is an issue, they can always rename the duplicated collections to something unique. And for those who'd like to have duplicated collection names, we should keep this UX for now.
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#889
No description provided.