[PR #4358] [MERGED] chore: addition of new GQL subscription for UserCollection duplication #4763

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4358
Author: @balub
Created: 9/18/2024
Status: Merged
Merged: 9/26/2024
Merged by: @jamesgeorge007

Base: nextHead: chore/user-collection-duplication-subscription-fix


📝 Commits (6)

  • 134396c chore: created a new subscription to listen for userCollection duplication
  • 15d8719 chore: added subscription for UserCollection duplication
  • 8390063 chore: changed return type of childCollections in UserCollectionDuplicatedData type
  • febeba0 chore: fixed issue with childCollection data type
  • 505dc52 chore: completed requested changes in PR review
  • 201c698 chore: revert updates to docker-compose.yml

📊 Changes

4 files changed (+141 additions, -3 deletions)

View changed files

📝 packages/hoppscotch-backend/src/pubsub/topicsDefs.ts (+2 -0)
📝 packages/hoppscotch-backend/src/user-collection/user-collection.resolver.ts (+11 -0)
📝 packages/hoppscotch-backend/src/user-collection/user-collection.service.ts (+77 -3)
📝 packages/hoppscotch-backend/src/user-collection/user-collections.model.ts (+51 -0)

📄 Description

Closes HSB-476

What's changed

In this PR we add a new GQL subscription userCollectionDuplicated which returns the entire UserCollection tree when subscribed to.

Notes to reviewers

Nil


🔄 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/4358 **Author:** [@balub](https://github.com/balub) **Created:** 9/18/2024 **Status:** ✅ Merged **Merged:** 9/26/2024 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `next` ← **Head:** `chore/user-collection-duplication-subscription-fix` --- ### 📝 Commits (6) - [`134396c`](https://github.com/hoppscotch/hoppscotch/commit/134396ca516e3bd076f01507cf2d4718c6cd7b0b) chore: created a new subscription to listen for userCollection duplication - [`15d8719`](https://github.com/hoppscotch/hoppscotch/commit/15d8719101bcf4b8bb283a8e41ca447a6906ad47) chore: added subscription for UserCollection duplication - [`8390063`](https://github.com/hoppscotch/hoppscotch/commit/83900632152f2c22871f72cc87ead002dc3e9a74) chore: changed return type of childCollections in UserCollectionDuplicatedData type - [`febeba0`](https://github.com/hoppscotch/hoppscotch/commit/febeba0aa0a8980a9687c03f3ec24617e4e3c8c1) chore: fixed issue with childCollection data type - [`505dc52`](https://github.com/hoppscotch/hoppscotch/commit/505dc521b86afcb196ce54b8774f05779860c456) chore: completed requested changes in PR review - [`201c698`](https://github.com/hoppscotch/hoppscotch/commit/201c6989fe3bc2ea3d8c9445834cb662010c3236) chore: revert updates to `docker-compose.yml` ### 📊 Changes **4 files changed** (+141 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-backend/src/pubsub/topicsDefs.ts` (+2 -0) 📝 `packages/hoppscotch-backend/src/user-collection/user-collection.resolver.ts` (+11 -0) 📝 `packages/hoppscotch-backend/src/user-collection/user-collection.service.ts` (+77 -3) 📝 `packages/hoppscotch-backend/src/user-collection/user-collections.model.ts` (+51 -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-476 <!-- 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 add a new GQL subscription `userCollectionDuplicated` which returns the entire UserCollection tree when subscribed to. <!-- 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 --> ### Notes to reviewers <!-- Any information you feel the reviewer should know about when reviewing your PR --> Nil --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:16:13 +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#4763
No description provided.