[PR #4793] [CLOSED] fix(collection-import): correct folder structure on import #4939

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/4793
Author: @chhaviG22
Created: 2/27/2025
Status: Closed

Base: mainHead: fix/folder-structure-onImport


📝 Commits (1)

  • 772cc14 fix(collection-import): correct folder structure on import

📊 Changes

1 file changed (+609 additions, -0 deletions)

View changed files

packages/hoppscotch-selfhost-web/src/platform/collections/collections.sync.ts (+609 -0)

📄 Description

Closes #4171

Ensure requests are added to the correct child folders instead of the root collection when importing collection.

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/4793 **Author:** [@chhaviG22](https://github.com/chhaviG22) **Created:** 2/27/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/folder-structure-onImport` --- ### 📝 Commits (1) - [`772cc14`](https://github.com/hoppscotch/hoppscotch/commit/772cc144a9c26a995c8be1a443b915a461b2df91) fix(collection-import): correct folder structure on import ### 📊 Changes **1 file changed** (+609 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `packages/hoppscotch-selfhost-web/src/platform/collections/collections.sync.ts` (+609 -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 <!-- Add an introduction into what this PR tries to solve in a couple of sentences --> Ensure requests are added to the correct child folders instead of the root collection when importing collection. ### 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:25:46 +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#4939
No description provided.