[PR #4815] [MERGED] fix: preserve hierarchy during personal collection imports #4950

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4815
Author: @chhaviG22
Created: 3/4/2025
Status: Merged
Merged: 3/14/2025
Merged by: @jamesgeorge007

Base: patchHead: fix/import-folder-structure


📝 Commits (2)

  • 31a3a91 fix(collection-import): correct folder structure on import
  • 344e15c fix: preserve hierarchy during personal GQL collection imports

📊 Changes

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

View changed files

📝 packages/hoppscotch-selfhost-web/src/platform/collections/desktop/gqlCollections.sync.ts (+1 -0)
📝 packages/hoppscotch-selfhost-web/src/platform/collections/desktop/sync.ts (+1 -0)
📝 packages/hoppscotch-selfhost-web/src/platform/collections/web/gqlCollections.sync.ts (+1 -0)
📝 packages/hoppscotch-selfhost-web/src/platform/collections/web/sync.ts (+1 -0)

📄 Description

Closes #4171, HFE-361.

The proposed changes ensure that (REST/GQL) child collections/requests are associated with the respective parent level collections instead of the root collection during imports to the personal workspace.

What's changed

Updating the parent collection ID when creating a new parent during each recursive call.


🔄 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/4815 **Author:** [@chhaviG22](https://github.com/chhaviG22) **Created:** 3/4/2025 **Status:** ✅ Merged **Merged:** 3/14/2025 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `patch` ← **Head:** `fix/import-folder-structure` --- ### 📝 Commits (2) - [`31a3a91`](https://github.com/hoppscotch/hoppscotch/commit/31a3a91d89a9df654e687149074ed45bf2fc42f0) fix(collection-import): correct folder structure on import - [`344e15c`](https://github.com/hoppscotch/hoppscotch/commit/344e15cda355de2c89bb58d8c1c7bf6423e880e1) fix: preserve hierarchy during personal GQL collection imports ### 📊 Changes **4 files changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-selfhost-web/src/platform/collections/desktop/gqlCollections.sync.ts` (+1 -0) 📝 `packages/hoppscotch-selfhost-web/src/platform/collections/desktop/sync.ts` (+1 -0) 📝 `packages/hoppscotch-selfhost-web/src/platform/collections/web/gqlCollections.sync.ts` (+1 -0) 📝 `packages/hoppscotch-selfhost-web/src/platform/collections/web/sync.ts` (+1 -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 #4171, HFE-361. <!-- Add an introduction into what this PR tries to solve in a couple of sentences --> The proposed changes ensure that (REST/GQL) child collections/requests are associated with the respective parent level collections instead of the root collection during imports to the personal workspace. ### What's changed <!-- Describe point by point the different things you have changed in this PR --> Updating the parent collection ID when creating a new parent during each recursive call. <!-- 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 --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:26:29 +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#4950
No description provided.