[PR #4207] [MERGED] feat: duplicate team and user collections #4701

Closed
opened 2026-03-17 02:12:56 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4207
Author: @balub
Created: 7/23/2024
Status: Merged
Merged: 7/24/2024
Merged by: @balub

Base: nextHead: feat/collection-duplicationn


📝 Commits (8)

  • 9b0d38a chore: created new mutation for team-collection duplication
  • 66dc91f feat: completed duplication function in TeamCollection module
  • 8b6f8cc feat: user-collection duplication complete
  • 53c8e75 chore: changed duplicated title suffix for collections
  • 483a262 chore: added return type to argument for duplication mutation in user-collections
  • baf9d9a chore: capitalized duplicate in duplicate collection service4 methods
  • ac6c60f chore: changed target of hopp-old-backend service to prod
  • be425f7 chore: merge branch 'next' into feat/collection-duplicationn

📊 Changes

4 files changed (+122 additions, -0 deletions)

View changed files

📝 packages/hoppscotch-backend/src/team-collection/team-collection.resolver.ts (+20 -0)
📝 packages/hoppscotch-backend/src/team-collection/team-collection.service.ts (+31 -0)
📝 packages/hoppscotch-backend/src/user-collection/user-collection.resolver.ts (+30 -0)
📝 packages/hoppscotch-backend/src/user-collection/user-collection.service.ts (+41 -0)

📄 Description

Closes HSB-425

What's changed

In this PR we are adding a new mutation to duplicate team and user collections.

For TeamCollections,

duplicateTeamCollection(collectionID: string) : Boolean

For UserCollections,

duplicateUserCollection(collectionID: string, reqType: ReqType) : Boolean

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

none


🔄 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/4207 **Author:** [@balub](https://github.com/balub) **Created:** 7/23/2024 **Status:** ✅ Merged **Merged:** 7/24/2024 **Merged by:** [@balub](https://github.com/balub) **Base:** `next` ← **Head:** `feat/collection-duplicationn` --- ### 📝 Commits (8) - [`9b0d38a`](https://github.com/hoppscotch/hoppscotch/commit/9b0d38ac7b54a84e038931c93053eb96bb7a4182) chore: created new mutation for team-collection duplication - [`66dc91f`](https://github.com/hoppscotch/hoppscotch/commit/66dc91f7b97529ec06817dddffe33f79e916a6b2) feat: completed duplication function in TeamCollection module - [`8b6f8cc`](https://github.com/hoppscotch/hoppscotch/commit/8b6f8cc36e0c116966354adfae5225dc5841d85d) feat: user-collection duplication complete - [`53c8e75`](https://github.com/hoppscotch/hoppscotch/commit/53c8e75920b6f4ac69d98469cd6301c3a85208d6) chore: changed duplicated title suffix for collections - [`483a262`](https://github.com/hoppscotch/hoppscotch/commit/483a26293bc785fc010ed5b8facac5c8f6cf8ee0) chore: added return type to argument for duplication mutation in user-collections - [`baf9d9a`](https://github.com/hoppscotch/hoppscotch/commit/baf9d9a45ebc27273d1fd9f6ccb7cdc50ef761c4) chore: capitalized duplicate in duplicate collection service4 methods - [`ac6c60f`](https://github.com/hoppscotch/hoppscotch/commit/ac6c60f98ce777d1b2beb6cc5170b0b8a6bc2b92) chore: changed target of hopp-old-backend service to prod - [`be425f7`](https://github.com/hoppscotch/hoppscotch/commit/be425f76cc8a98ddf9d7a92c5e4d5fead2bf97a9) chore: merge branch 'next' into feat/collection-duplicationn ### 📊 Changes **4 files changed** (+122 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-backend/src/team-collection/team-collection.resolver.ts` (+20 -0) 📝 `packages/hoppscotch-backend/src/team-collection/team-collection.service.ts` (+31 -0) 📝 `packages/hoppscotch-backend/src/user-collection/user-collection.resolver.ts` (+30 -0) 📝 `packages/hoppscotch-backend/src/user-collection/user-collection.service.ts` (+41 -0) </details> ### 📄 Description <!-- Thanks for creating this pull request 🤗 Please make sure that the pull request is limited to one type (docs, feature, etc.) and keep it as small as possible. You can open multiple prs instead of opening a huge one. --> <!-- If this pull request closes an issue, please mention the issue number below --> Closes HSB-425 <!-- Add an introduction into what this PR tries to solve in a couple of sentences --> ### What's changed <!-- Describe point by point the different things you have changed in this PR --> In this PR we are adding a new mutation to duplicate team and user collections. ``` For TeamCollections, duplicateTeamCollection(collectionID: string) : Boolean For UserCollections, duplicateUserCollection(collectionID: string, reqType: ReqType) : Boolean ``` <!-- You can also choose to add a list of changes and if they have been completed or not by using the markdown to-do list syntax - [ ] Not Completed - [x] Completed --> ### 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 <!-- Any additional information like breaking changes, dependencies added, screenshots, comparisons between new and old behaviour, etc. --> none --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:12:56 +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#4701
No description provided.